Swiftagram Documentation

Protocol Authentication

public protocol Authentication  

A protocol defining a generic authentication process.

%61 Authentication Authentication CustomClientAuthentication CustomClientAuthentication CustomClientAuthentication->Authentication Authenticator.Group.Basic.TwoFactor Authenticator.Group.Basic.TwoFactor Authenticator.Group.Basic.TwoFactor->Authentication

Types Conforming to Authentication

CustomClientAuthentication

A protocol defining an authentication process to be executed mimicing a custom Client.

Authenticator.Group.Basic.TwoFactor

A struct defining an instance capable of resolving a two factor authentication challenge.

Requirements

authenticate()

func authenticate() -> AnyPublisher<Secret, Error>

Authenticate the given user.

Returns

A valid Publisher.