getAccessToken

abstract fun getAccessToken(reason: InvalidTokenReason, oldToken: String?, onResult: (GetAccessTokenResponse) -> Unit)

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.

oldToken

The last access token.