STRUCT

SuccessfulTokenResponse

Contents

public struct SuccessfulTokenResponse: Codable, Equatable

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.