AccessTokenRepository

Functions

Link copied to clipboard
abstract suspend fun getNewAccessToken(refreshToken: String, clientId: String? = null): Either<NetworkFailure, AccessTokenRefreshResult>

Retrieves a new access token using the provided refresh token and client ID.

Link copied to clipboard
abstract suspend fun persistTokens(accessToken: AccessToken, refreshToken: RefreshToken): Either<CoreFailure, AccountTokens>

Persists the access token and refresh token in the repository.