OAuthCredentials - daneden/Twift GitHub Wiki
OAuthCredentials
A structure containing OAuth key and secret tokens
public struct OAuthCredentials: Codable
Inheritance
Codable
Initializers
init(key:secret:userId:)
Initialise an OAuth token from a known key, secret, and optional user ID
public init(key: String, secret: String, userId: String? = nil)
Properties
key
The public OAuth key (also referred to as the OAuth application key or access token)
public let key: String
secret
The private OAuth secrey (also referred to as the OAuth application secret or access token secret)
public let secret: String
userId
An optional User ID
public let userId: User.ID?