AuthToken
public struct AuthToken
extension AuthToken: Codable
extension AuthToken: JSONDecodable
extension AuthToken: DictionaryConvertible
extension AuthToken: Equatable
Authentication token.
-
Session id
Declaration
Swift
public let id: String
-
Optionnal status message
Declaration
Swift
public let statusText: String?
-
Token
Declaration
Swift
public let token: String?
-
Additional information
Declaration
Swift
public let userInfo: [String : Any]?
-
Create a token with known attributes
Declaration
Swift
public init(id: String, statusText: String?, token: String?, userInfo: [String : Any]? = nil)
-
Return the origin email of token if any
Declaration
Swift
public var email: String? { get }
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Create a token with information stored in JSON format.
Declaration
Swift
public init?(json: JSON)
-
Return a dictionary with all information inside token
Declaration
Swift
public var dictionary: DictionaryConvertible.Dico { get }
-
Declaration
Swift
public static func == (lhf: AuthToken, rhf: AuthToken) -> Bool
-
true
if there is a valid token.Declaration
Swift
public var isValidToken: Bool { get }
-
Is expired token. (for know we will check only if valid.
Declaration
Swift
public var isExpiredToken: Bool { get }