CLASS

SuccessfulTokenResponse

Contents

@objcMembers public final class SuccessfulTokenResponse: NSObject, Codable

A successful token response as defined in RFC 6749.

Properties

accessToken

public let accessToken: String

The access token.

tokenType

public let tokenType: String?

The token type.

scope

public let scope: String?

The resulting scope.

expiresIn

public let expiresIn: Int

The lifetime of the access token, in seconds.

refreshToken

public let refreshToken: String?

The refresh token.

idToken

public let idToken: String?

The ID Token value associated with the authenticated session.

Methods

init(from:)

public init(from decoder: Decoder) throws

Parameters

Name Description
decoder The decoder to read data from.

isEqual(_:)

override public func isEqual(_ object: Any?) -> Bool