StoringApiAuthenticator
public class StoringApiAuthenticator<T> : AnyApiAuthenticator<T>
An ApiAuthenticator
that stores credentials after successfully authenticating.
-
Declaration
Swift
public init(delegate: AnyApiAuthenticator<T>, store: AnyCredentialsStore<T>)
Parameters
delegate
An
ApiAuthenticator
that does the authentication.store
A
CredentialsStore
for storing the credentials. -
Declaration
Swift
override public func authenticate(completion: @escaping ApiCompletion<T>)