UNPKG

@nhost/react

Version:

Nhost React library

18 lines (17 loc) 488 B
import { ErrorPayload } from '@nhost/nhost-js'; /** * Use `useAuthenticationStatus` to get the authentication status for the user. * * @example * ```tsx * const { isAuthenticated, isLoading } = useAuthenticationStatus(); * ``` */ export declare const useAuthenticationStatus: () => { isAuthenticated: boolean; isLoading: boolean; error: ErrorPayload | null; isError: boolean; connectionAttempts: number; }; //# sourceMappingURL=useAuthenticationStatus.d.ts.map