BETTER-AUTH. UI
API Reference

AuthHooks

The AuthHooks type defines the set of authentication-related hooks used by the UI provider and components.

PropTypeDefault
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
-