()
| 33 | } |
| 34 | |
| 35 | export function useMfaStatus(): UseQueryResult<IMfaStatusResponse | null> { |
| 36 | return useQuery<IMfaStatusResponse | null>({ |
| 37 | queryKey: AUTH_QUERY_KEYS.mfaStatus, |
| 38 | queryFn: async () => { |
| 39 | const { data } = await apiClient.GET("/api/v1/auth/mfa/status"); |
| 40 | |
| 41 | return data?.data ?? null; |
| 42 | }, |
| 43 | staleTime: 60_000, |
| 44 | retry: false |
| 45 | }); |
| 46 | } |
no outgoing calls
no test coverage detected