API Reference
AuthHooks
The AuthHooks
type defines the set of authentication-related hooks used by the UI provider and components.
Prop | Type | Default |
---|---|---|
useIsRestoring? | (() => boolean) | - |
useListMembers | (params: any) => AuthHook<{ members: any[]; total: number; }> | - |
useListUserInvitations | () => AuthHook<Invitation[]> | - |
useListInvitations | (params: any) => AuthHook<Invitation[]> | - |
useInvitation | (params: any) => AuthHook<Invitation & { organizationName: string; organizationSlug: string; organizationLogo?: string | undefined; }> | - |
useHasPermission | (params: any) => AuthHook<{ error: null; success: boolean; }> | - |
useListOrganizations | () => any | - |
useActiveOrganization | () => any | - |
useListApiKeys | () => AuthHook<ApiKey[]> | - |
useListPasskeys | () => any | - |
useListSessions | () => AuthHook<any[]> | - |
useListDeviceSessions | () => AuthHook<any[]> | - |
useAccountInfo | (params: any) => AuthHook<{ user: User; }> | - |
useListAccounts | () => AuthHook<{ accountId: string; provider: string; }[]> | - |
useSession | () => any | - |