persistTokens

open suspend override fun persistTokens(accessToken: AccessToken, refreshToken: RefreshToken): <Error class: unknown class><<Error class: unknown class>, 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.