AccessToken
public struct AccessToken : Decodable, Equatable
Struct representing an access token.
-
The access token value.
Declaration
Swift
public let accessToken: String
-
The expiration time of the access token given in seconds.
Declaration
Swift
public let expiresIn: Int
-
The user ID associated with the access token.
Declaration
Swift
public let consumerId: String
-
The type of the access token.
Declaration
Swift
public let tokenType: String
-
Initializes an access token.
Declaration
Swift
public init( accessToken: String, expiresIn: Int, consumerId: String, tokenType: String )
Parameters
accessToken
The access token string.
expiresIn
The expiration time of the access token in seconds.
consumerId
The user ID associated with the access token.
tokenType
The type of the access token.