AccessTokenRepositoryImpl
internal class AccessTokenRepositoryImpl(userId: <Error class: unknown class>, accessTokenApi: <Error class: unknown class>, authTokenStorage: <Error class: unknown class>, sessionMapper: SessionMapper = MapperProvider.sessionMapper()) : AccessTokenRepository
Constructors
Link copied to clipboard
constructor(userId: <Error class: unknown class>, accessTokenApi: <Error class: unknown class>, authTokenStorage: <Error class: unknown class>, sessionMapper: SessionMapper = MapperProvider.sessionMapper())
Functions
Link copied to clipboard
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.
Link copied to clipboard
open suspend override fun persistTokens(accessToken: AccessToken, refreshToken: RefreshToken): Either<StorageFailure, AccountTokens>
Persists the access token and refresh token in the repository.