TokenStore

@ObjCName(name = "TokenStoreProtocol", swiftName = "TokenStoreProtocol", exact = true)
abstract class TokenStore

Concurrency-safe Token Store implementations.

Android Implementation: org.publicvalue.multiplatform.oidc.tokenstore.AndroidSettingsTokenStore iOS implementation: KeychainTokenStore

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val accessTokenFlow: Flow<String?>
Link copied to clipboard
abstract val idTokenFlow: Flow<String?>
Link copied to clipboard
Link copied to clipboard
abstract val refreshTokenFlow: Flow<String?>
Link copied to clipboard

Functions

Link copied to clipboard
abstract suspend fun getAccessToken(): String?
Link copied to clipboard
abstract suspend fun getIdToken(): String?
Link copied to clipboard
abstract suspend fun getRefreshToken(): String?
Link copied to clipboard
Link copied to clipboard
abstract suspend fun removeAccessToken()
Link copied to clipboard
abstract suspend fun removeIdToken()
Link copied to clipboard
abstract suspend fun removeRefreshToken()
Link copied to clipboard
suspend fun TokenStore.removeTokens()
Link copied to clipboard
abstract suspend fun saveTokens(accessToken: String, refreshToken: String?, idToken: String?)
Link copied to clipboard