Token Refresh Handler
Concurrency-safe Token Refresh Handler.
Functions
Link copied to clipboard
suspend fun refreshAndSaveToken(refreshCall: suspend (String) -> AccessTokenResponse, oldAccessToken: String): OauthTokens
Thread-safe refresh the tokens and save to store.
Link copied to clipboard
suspend fun TokenRefreshHandler.refreshAndSaveToken(refresher: TokenRefresher, oldAccessToken: String): OauthTokens
Thread-safe refresh the tokens and save to store. (convenience method to allow calls from iOS as lambdas are not supported yet)