OAuthSessionStore

Platform-agnostic session persistence interface. Consumers provide the storage backend — the module handles serialization.

On Android, use EncryptedSharedPreferences (the sample shows how). On JVM desktop, use a file-backed store with appropriate permissions.

Functions

Link copied to clipboard
abstract suspend fun clear()
Link copied to clipboard
abstract suspend fun load(): OAuthSession?
Link copied to clipboard
abstract suspend fun save(session: OAuthSession)