OAuthToken
public struct OAuthToken : Codable, Equatable, AccessToken
OAuth token model returned by the server for accessToken requests and refreshAccessToken requests They are also constructed from LoginResponse These may be legacy TP OAuth tokens (which will not have a refreshToken) or a Cognito token. Cognito tokens will have refreshToken and expiresIn set
-
String value of the OAuth token
Declaration
Swift
public let accessToken: String
-
Undocumented
Declaration
Swift
public var refreshToken: String?
-
Undocumented
Declaration
Swift
public var tokenType: String?
-
Undocumented
Declaration
Swift
public var scope: String?
-
Undocumented
Declaration
Swift
public var username: String?
-
Undocumented
Declaration
Swift
public var tokenExp: Milliseconds?
-
initializer called from login response
Declaration
Swift
public init(loginResponse: LoginResponse)
-
Undocumented
Declaration
Swift
public init(token: String, refresh: String? = nil, expiresAt: Date, username: String)
-
Undocumented
Declaration
Swift
public init(token: String, refresh: String? = nil, tokenExp: Int, username: String)
-
Undocumented
Declaration
Swift
public init(token: String, refresh: String? = nil, tokenExp: Milliseconds, username: String)
-
Undocumented
Declaration
Swift
public var rawValue: String { get }
-
Undocumented
Declaration
Swift
public func equals(_ other: AccessToken?) -> Bool
-
Declaration
Swift
public init(from decoder: Decoder) throws