RoomTokenStorage
class RoomTokenStorage(database: TokenDatabase, encryptionHandler: TokenEncryptionHandler, configuration: OAuth2ClientConfiguration) : TokenStorage
Cross-platform TokenStorage implementation backed by Room.
The encryptionHandler encrypts/decrypts the access token before persistence. The configuration is used to reconstruct TokenData when reading tokens.
Parameters
database
the TokenDatabase instance (created via platform-specific builders).
encryptionHandler
the encryption strategy for token data.
configuration
the OAuth2ClientConfiguration used to reconstruct tokens.
Constructors
Link copied to clipboard
constructor(database: TokenDatabase, encryptionHandler: TokenEncryptionHandler, configuration: OAuth2ClientConfiguration)
Functions
Link copied to clipboard
open suspend override 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
open suspend override fun setMetadata(metadata: TokenMetadata): ERROR CLASS: Symbol not found for Result<kotlin/Unit>
Updates the metadata for an existing token.