TokenStorage
interface TokenStorage
Platform-agnostic abstraction for persisting and retrieving OAuth2 tokens.
Platform-specific implementations handle encryption, database access, and secure storage. On Android, the existing com.okta.authfoundation.credential.TokenStorage interface adds biometric-aware operations.
Warning: When implementing a custom TokenStorage, it is vitally important that you do not directly invoke any of these methods yourself. These methods are intended to be called on-demand by the other AuthFoundation classes, and the behavior is undefined if these methods are called directly by the developer.
Inheritors
Functions
Link copied to clipboard
abstract suspend fun add(token: TokenInfo, metadata: TokenMetadata): ERROR CLASS: Symbol not found for Result<kotlin/Unit>
Stores a new token with associated metadata.
Link copied to clipboard
abstract suspend fun setMetadata(metadata: TokenMetadata): ERROR CLASS: Symbol not found for Result<kotlin/Unit>
Updates the metadata for an existing token.