refreshTokenAndPersistSession

open suspend override fun refreshTokenAndPersistSession(currentRefreshToken: String, clientId: String?): Either<CoreFailure, AccountTokens>

Refreshes the access token using the provided refresh token and persists the session in the repository.

Return

Either a CoreFailure if the operation fails, or the AccountTokens with the new access token and refresh token.

Parameters

currentRefreshToken

The refresh token to use for obtaining a new access token.

clientId

The optional client ID associated with the new token.