SwiftagramCrypto Documentation

Class Authenticator.​Keys

final class Keys  

A class defining an instance used for Secrets management.

Member Of

Authenticator

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

Properties

labels

public let labels: [String]? 

Secrets labels. nil means all secrets should be managed.

Methods

get()

func get() throws -> [Secret]  

Try fetching Secrets matching labels.

Throws

Some Error.

Returns

An array of Secrets.

delete()

@discardableResult
    func delete() throws -> [Secret]  

Delete selected Secrets.

Throws

Some Error.

Returns

An optional Secret.