UseIdentityOptions
Agent Runtimes / identity/useIdentity / UseIdentityOptions
Interface: UseIdentityOptions
Defined in: identity/useIdentity.ts:33
Options for useIdentity hook
Properties
autoHandleCallback?
optionalautoHandleCallback?:boolean
Defined in: identity/useIdentity.ts:56
Auto-handle OAuth callback from URL params
baseUrl?
optionalbaseUrl?:string
Defined in: identity/useIdentity.ts:52
Base URL for redirect URIs (defaults to window.location.origin)
callbackPath?
optionalcallbackPath?:string
Defined in: identity/useIdentity.ts:54
Callback path for OAuth redirects (defaults to /oauth/callback)
providers?
optionalproviders?:object
Defined in: identity/useIdentity.ts:41
Provider configurations to initialize. Each provider has specific requirements:
- GitHub: clientId required, client_secret handled server-side
- Google: clientId required, supports pure PKCE
- Kaggle: clientId required, standard OAuth 2.1
custom?
optionalcustom?:OAuthProviderConfig[]
Custom provider configurations.
github?
optionalgithub?:object
GitHub OAuth configuration. Note: client_secret must be configured server-side.
github.clientId
clientId:
string
github.redirectUri?
optionalredirectUri?:string
github.scopes?
optionalscopes?:string[]
google?
optionalgoogle?:object
Google OAuth configuration. Supports offline access mode.
google.clientId
clientId:
string
google.redirectUri?
optionalredirectUri?:string
google.scopes?
optionalscopes?:string[]
kaggle?
optionalkaggle?:object
Kaggle OAuth configuration.
kaggle.clientId
clientId:
string
kaggle.redirectUri?
optionalredirectUri?:string
kaggle.scopes?
optionalscopes?:string[]