Initializer

init(for:from:)

Fetches an instance of Tokens that was previously saved to a keychain instance by the saveTokens(for:in:) method.

Declaration

init(for clientID: String, from keychain: Keychain) throws

Parameters

for

A client id or other unique string. MUST be the same one used to save the tokens.

from

An instance of keychain. MUST be the same one used to save the tokens.