AuthorizationInfo
public struct AuthorizationInfo : Decodable
The AuthorizationInfo
is result of oauth authentication.
-
Token for networking with device-gateway.
Declaration
Swift
public let accessToken: String
-
Type of access-token.
Declaration
Swift
public let tokenType: String
-
Required to refresh the access-token.
If has a
refreshToken
, can request oauth authentication that grant-type is refresh_token.Declaration
Swift
public let refreshToken: String?
-
The authorization server uses the “scope” response parameter to inform the client of the scope of the access token issued.
Declaration
Swift
public let scopes: [String]
-
Expiration date of access-token.
Declaration
Swift
public let expireDate: Date
-
Declaration
Swift
public init(from decoder: Decoder) throws