minimalSettings
fun AuthConfigDefaults.minimalSettings(alwaysAutoRefresh: Boolean = false, autoLoadFromStorage: Boolean = false, autoSaveToStorage: Boolean = false, sessionManager: SessionManager? = MemorySessionManager(), codeVerifierCache: CodeVerifierCache? = MemoryCodeVerifierCache(), enableLifecycleCallbacks: Boolean = false)(source)
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.
Parameters
alwaysAutoRefresh
Whether to always automatically refresh the session, when it expires
autoLoadFromStorage
Whether to automatically load the session from sessionManager, when Auth is initialized
autoSaveToStorage
Whether to automatically save the session to sessionManager, when the session changes
sessionManager
The session manager used to store/load the session.
codeVerifierCache
The cache used to store/load the code verifier for the FlowType.PKCE flow.
enableLifecycleCallbacks
Whether to stop auto-refresh on focus loss, and resume it on focus again. Currently only supported on Android.