MemoryTokenManager

A thread-safe, in-memory implementation of TokenManager.

This implementation stores tokens in memory only. Tokens will be lost when the application process is terminated.

Constructors

Link copied to clipboard
constructor()

Functions

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

Retrieves the current access token.

Link copied to clipboard
open override fun clearTokens()

Clears all stored tokens, effectively logging out the user.

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

Retrieves the current refresh token.

Link copied to clipboard
open override fun storeTokens(accessToken: String, refreshToken: String?)

Stores the new access and refresh tokens.