MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / useMfaStatus

Function useMfaStatus

apps/ui/src/features/auth/Auth.queries.ts:35–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35export 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}

Callers 2

useMfaSectionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected