Optional
autoOptional
debugOptional
detectOptional
fetchOptional
init: RequestInitOptional
flowOptional
Experimental
hasOptional
headersOptional
Experimental
lockProvide your own locking mechanism based on the environment. By default no locking is done at this time.
Optional
persistOptional
storageOptional
storageOptional
urlOptional
Experimental
userStores the user object in a separate storage location from the rest of the session data. When non-null, storage
will only store a JSON object containing the access and refresh token and some adjacent metadata, while userStorage
will only contain the user object under the key storageKey + '-user'
.
When this option is set and cookie storage is used, getSession()
and other functions that load a session from the cookie store might not return back a user. It's very important to always use getUser()
to fetch a user object in those scenarios.
Generated using TypeDoc
Set to "true" if there is a custom authorization header set globally.