SettingsCodeVerifierCache

class SettingsCodeVerifierCache(settings: Settings = createDefaultSettings(), key: String = SETTINGS_KEY) : CodeVerifierCache(source)

A CodeVerifierCache that uses the Settings API.

Parameters

settings

The Settings instance to use. Defaults to createDefaultSettings.

key

The key to use for saving the code verifier.

Constructors

Link copied to clipboard
constructor(settings: Settings = createDefaultSettings(), key: String = SETTINGS_KEY)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun deleteCodeVerifier()

Deletes the saved code verifier from the cache.

Link copied to clipboard
open suspend override fun loadCodeVerifier(): String?

Loads the saved code verifier from the cache.

Link copied to clipboard
open suspend override fun saveCodeVerifier(codeVerifier: String)

Saves the given code verifier.