AuthenticationService
public struct AuthenticationService : AuthenticationServicing
The implementation of the AuthenticationServicing protocol.
-
Initializes the AuthenticationService.
Declaration
Swift
public init(repository: AuthenticationRepositoryProtocol)
Parameters
repository
The authentication repository.
-
Obtains new access token with given OAuth request.
Declaration
Swift
@MainActor public func refreshAccessToken(request: OAuthRequest, response: LoadableSubject<AccessToken>)
Parameters
request
The OAuth request.
response
The loadable subject to store the access token response.