SwiftagramCrypto Documentation

Structure Authenticator.​Group.​Basic.​Two​Factor

struct TwoFactor: Authentication  

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

%103 Authenticator.Group.Basic.TwoFactor Authenticator.Group.Basic.TwoFactor Authentication Authentication Authenticator.Group.Basic.TwoFactor->Authentication

Conforms To

Authentication

A protocol defining a generic authentication process.

Properties

storage

public let storage: AnyStorage<Secret>

The storage.

client

public let client: Client

The client.

code

public let code: String

The code.

username

public let username: String

The username.

cross​Site​Request​Forgery

public let crossSiteRequestForgery: HTTPCookie

The cross stie request forgery token.

Methods

authenticate()

public func authenticate() -> AnyPublisher<Secret, Swift.Error>  

Authenticate the given user.

Parameters

username

A valid String.

encrypted​Password

A valid String.

cookies

An array of HTTPCookies.

client

A valid Client.

Returns

Some Publisher.