persistTokens

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

Persists the access token and refresh token in the repository.

Return

Either a CoreFailure if the operation fails, or Unit if the tokens are successfully persisted.

Parameters

accessToken

The access token to persist.

refreshToken

The refresh token to persist.