optional
autoRefreshToken: boolean
Automatically refreshes the token for logged-in users. Defaults to true.
optional
storageKey: string
Optional key name used for storing tokens in local storage.
optional
persistSession: boolean
Whether to persist a logged-in session to storage. Defaults to true.
optional
detectSessionInUrl: boolean
Detect a session from the URL. Used for OAuth login callbacks. Defaults to true.
A storage provider. Used to store the logged-in session.
OAuth flow to use - defaults to implicit flow. PKCE is recommended for mobile and server-side applications.
If debug messages for authentication client are emitted. Can be used to inspect the behavior of the library.