MKToken
public class MKToken : Codable
Class for interaction with user token
-
Empty constructor
Declaration
Swift
public init() -
Constructor
Declaration
Swift
public init(token_type: String, expires_in: Int, access_token: String, refresh_token: String) -
Save the user token to user-defaults
Declaration
Swift
public func store() -
Get the current MKToken object
Declaration
Swift
public static func current() -> MKToken? -
Remove the token in user-defaults
Declaration
Swift
public static func clear() -
Access token string
Declaration
Swift
public static var accessToken: String { get } -
Access refresh-token string
Declaration
Swift
public static var refreshToken: String { get }
MKToken Class Reference