TokenInfo
public class TokenInfo : Codable
Info about the tokens used by the SDK for authentication.
-
Initializer
Declaration
Swift
public init(accessToken: String, refreshToken: String?, expiresIn: TimeInterval, tokenType: String)Parameters
accessTokenAccess token.
refreshTokenRefresh token.
expiresInExpiration date of the token.
tokenTypeType of the token.
-
Initializer.
Declaration
Swift
public init(accessToken: String, expiresIn: TimeInterval)Parameters
accessTokenAccess token.
expiresInExpiration date of the token.
-
Compares tokens
Declaration
Swift
public static func == (lhs: TokenInfo, rhs: TokenInfo) -> BoolParameters
lhsFirst token
rhsSecond tken
Return Value
True in case tokens are the same, false otherwise.
TokenInfo Class Reference