@auth0/auth0-react
Version:
Auth0 SDK for React Single Page Applications (SPA)
15 lines • 460 B
TypeScript
import { User } from '@auth0/auth0-spa-js';
/**
* The auth state which, when combined with the auth methods, make up the return object of the `useAuth0` hook.
*/
export interface AuthState<TUser extends User = User> {
error: Error | undefined;
isAuthenticated: boolean;
isLoading: boolean;
user: TUser | undefined;
}
/**
* The initial auth state.
*/
export declare const initialAuthState: AuthState;
//# sourceMappingURL=auth-state.d.ts.map