getNewAccessToken
open suspend override fun getNewAccessToken(refreshToken: String, clientId: String?): Either<NetworkFailure, AccessTokenRefreshResult>
Retrieves a new access token using the provided refresh token and client ID.
If provided, the new token will be associated with this client ID. If the client is remotely removed by the user, the tokens will be invalidated. Future refreshes will keep the previously associated client ID. i.e. after the first refresh, the client ID doesn't need to be provided anymore.
Return
Either a CoreFailure or the new access token.
Parameters
refreshToken
The refresh token to use for obtaining a new access token.
clientId
The optional client ID.