InPlayerAuthorization

public struct InPlayerAuthorization : Codable

Authorization Model

  • Bearer access token used to authenticate user.

    Declaration

    Swift

    public let accessToken: String?
  • Bearer refresh token used to generate new access token when expires.

    Declaration

    Swift

    public let refreshToken: String?
  • Logged in account

    Declaration

    Swift

    public let account: InPlayerAccount?
  • Time at which the access token expires, measured in seconds since 1 January 1970 (UTC)

    Declaration

    Swift

    public let expires: Double?
  • Decoder method

    Declaration

    Swift

    public init(from decoder: Decoder) throws