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) | - |
useInvitation | (params: any) => AuthHook<any> | - |
useHasPermission | (params: any) => AuthHook<{ error: null; success: boolean; }> | - |
useListOrganizations | () => any | - |
useActiveOrganization | () => any | - |
useListApiKeys | () => AuthHook<ApiKey[]> | - |
useListPasskeys | () => any | - |
useListSessions | () => AuthHook<any[]> | - |
useListDeviceSessions | () => AuthHook<any[]> | - |
useListAccounts | () => AuthHook<{ accountId: string; provider: string; }[]> | - |
useSession | () => any | - |