updateToken

abstract suspend fun updateToken(accessTokenApi: AccessTokenApi, oldRefreshToken: String?): SessionDTO

Updates the access token and (possibly) the refresh token for the session.

In case of failure to refresh the access token, an exception can be thrown.

Return

The updated SessionDTO object.

Parameters

accessTokenApi

The AccessTokenApi interface used to retrieve the new access token.

oldRefreshToken

The old refresh token to be replaced.

See also