AuthenticationInfo
public struct AuthenticationInfo : Decodable, Equatable
Struct representing Authentication related values
-
Type alias representing authentication info settings as a
Dictionary<Sring, AnyDecodable>
.Declaration
Swift
public typealias Settings = [String : AnyDecodable]
-
The access token for a session.
Declaration
Swift
public let accessToken: String
-
The access token type.
Declaration
Swift
public let tokenType: String
-
The validity of the access token in seconds.
Declaration
Swift
public let expiresIn: Double
-
The refresh token for the access token.
Declaration
Swift
public let refreshToken: String
-
The creation time of the access token in seconds.
Declaration
Swift
public let createdAt: TimeInterval
-
Additional settings for the session.
Declaration
Swift
public let settings: Settings
-
Undocumented
Declaration
Swift
public init(accessToken: String, tokenType: String, expiresIn: Double, refreshToken: String, createdAt: TimeInterval, settings: Settings)
-
Keys used in the settings dictionary.
See moreDeclaration
Swift
public enum SettingsKeys : String
-
Gets the value for a
SettingsKey
from thesettings
dictionary.Declaration
Swift
public func getSettingValue(for key: SettingsKeys) -> Any?
Parameters
key
The key as
SettingsKeys
.Return Value
The value corresponding to the key as an optional
Any
. -
Declaration
Swift
public init(from decoder: Decoder) throws