OAuthAuthorizationProvider

constructor(initialAccessToken: String, refreshTokenHandler: suspend () -> String?)

Parameters

initialAccessToken

the token to start with.

refreshTokenHandler

mints a fresh access token, or returns null if refresh failed.