AuthConfigDefaults

The default values for the AuthConfig

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Whether to always automatically refresh the session, when it expires

Link copied to clipboard

Whether to automatically load the session from sessionManager, when Auth is initialized

Link copied to clipboard

Whether to automatically save the session to sessionManager, when the session changes

Link copied to clipboard

The cache used to store/load the code verifier for the FlowType.PKCE flow. When null, the default SettingsCodeVerifierCache will be used

Link copied to clipboard
var coroutineDispatcher: CoroutineDispatcher

The dispatcher used for all auth related network requests

Link copied to clipboard
Link copied to clipboard

The default redirect url used for authentication. When null, a platform specific default redirect url will be used.

Link copied to clipboard

Whether to stop auto-refresh on focus loss, and resume it on focus again.

Link copied to clipboard

The type of login flow to use. Defaults to FlowType.IMPLICIT

Link copied to clipboard
var host: String?

The deeplink host used for the implicit and PKCE flow. When null, deeplinks won't be used as redirect urls

Link copied to clipboard
Link copied to clipboard

The duration after which Auth should retry refreshing a session, when it failed due to network issues

Link copied to clipboard

The deeplink scheme used for the implicit and PKCE flow. When null, deeplinks won't be used as redirect urls

Link copied to clipboard

A serializer used for serializing/deserializing objects e.g. in Auth.signInWith. Defaults to SupabaseClientBuilder.defaultSerializer, when null.

Link copied to clipboard

The session manager used to store/load the session. When null, the default SettingsSessionManager will be used

Functions

Link copied to clipboard
fun AuthConfigDefaults.minimalSettings(alwaysAutoRefresh: Boolean = false, autoLoadFromStorage: Boolean = false, autoSaveToStorage: Boolean = false, sessionManager: SessionManager? = MemorySessionManager(), codeVerifierCache: CodeVerifierCache? = MemoryCodeVerifierCache(), enableLifecycleCallbacks: Boolean = false)

Applies minimal settings to the AuthConfig. This is useful for server side applications, where you don't need to store the session or code verifier.