updateToken

abstract suspend fun updateToken(accessTokenApi: AccessTokenApi, oldAccessToken: String, oldRefreshToken: String): <Error class: unknown class>

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.

oldAccessToken

The old access token to be replaced.

oldRefreshToken

The old refresh token to be replaced.

See also