get Access Token
abstract fun getAccessToken(reason: InvalidTokenReason, oldToken: String?, onResult: (GetAccessTokenResponse) -> Unit)
Content copied to clipboard
Is called when the app sends the access token is invalid action. The client app needs to call the onResult function to set the GetAccessTokenResponse.
Parameters
reason
Specifies the reason why the token is invalid. InvalidTokenReason.UNAUTHORIZED means that the session had been invalidated and InvalidTokenReason.OTHER if the token has expired and should be renewed via onResult.
old Token
The last access token.