TokenStore

A token store.

Constructors

Link copied to clipboard
constructor(token: Token)

Properties

Link copied to clipboard

The store token.

Functions

Link copied to clipboard
fun refreshTokenIn(scope: CoroutineScope, refreshToken: suspend (Token) -> Token, releaseToken: suspend (Token) -> Unit, onFailure: suspend (t: Throwable) -> Unit): Job

A helper function to refresh and release the Token found in TokenStore.