(identifier: string)
| 87 | * password/email/SSO gating so the consumer can render the appropriate form. |
| 88 | */ |
| 89 | export function useDeployedChatConfig(identifier: string) { |
| 90 | return useQuery({ |
| 91 | queryKey: chatKeys.config(identifier), |
| 92 | queryFn: ({ signal }) => fetchDeployedChatConfig(identifier, signal), |
| 93 | enabled: Boolean(identifier), |
| 94 | staleTime: 60 * 1000, |
| 95 | retry: false, |
| 96 | }) |
| 97 | } |
| 98 | |
| 99 | async function postChatAuth( |
| 100 | identifier: string, |
no test coverage detected