SwiftagramCrypto Documentation

Class Authenticator.​Key

final class Key  

A class defining an instance used for Secret management.

Member Of

Authenticator

A struct defining an instance capable of starting the authentication flow for a given user.

Properties

label

public let label: String

The Secret label.

Methods

get()

func get() throws -> Secret?  

Try fetching a Secret matching the given label.

Throws

Some Error.

Returns

An optional Secret.

delete()

@discardableResult
    func delete() throws -> Secret?  

Delete the selected Secret.

Throws

Some Error.

Returns

An optional Secret.