updateToken

abstract suspend fun updateToken(accessTokenApi: AccessTokenApi, 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.

oldRefreshToken

The old refresh token to be replaced.

See also