UserContext: {
    checkSession: (() => Promise<void>);
    error?: Error;
    isLoading: boolean;
    user?: UserProfile;
}

The user context returned from the useUser hook.

Type declaration

  • checkSession: (() => Promise<void>)
      • (): Promise<void>
      • Returns Promise<void>

  • Optional error?: Error
  • isLoading: boolean
  • Optional user?: UserProfile