AuthenticationRepositoryProtocol
public protocol AuthenticationRepositoryProtocol
A protocol defining the authentication repository functionality.
-
Obtains new access token with given OAuth request.
Declaration
Swift
func refreshAccessToken(request: OAuthRequest) -> AnyPublisher<AccessToken, NetworkError>
Parameters
request
The OAuth request containing the necessary information.
Return Value
A publisher that emits an
AccessToken
or aNetworkError
if the operation fails.