Skip to content

Structure

AppleIdentityToken

struct AppleIdentityToken

Overview

  • See Also: Retrieve the User’s Information from Apple ID Servers

Topics

Structures

  • AppleIdentityToken.UserDetectionStatus
    Taken from https://developer.apple.com/documentation/authenticationservices/asuserdetectionstatus With slight modification to make adding new cases non-breaking.

Initializers

Instance Properties

  • audience
    Your client_id in your Apple Developer account.
  • email
    The user’s email address.
  • emailVerified
    A Boolean value that indicates whether the service has verified the email. The value of this claim is always true because the servers only return verified email addresses.
  • expires
    The expiry time for the token. This value is typically set to 5 minutes.
  • isPrivateEmail
    A Boolean value that indicates whether the email shared by the user is the proxy address. It is absent (nil) if the user is not using a proxy email address.
  • issuedAt
    The time the token was issued.
  • issuer
    The issuer-registered claim key, which has the value https://appleid.apple.com.
  • nonce
    A string value used to associate a client session and an ID token. This value is used to mitigate replay attacks and is present only if passed during the authorization request.
  • nonceSupported
    A Boolean value that indicates whether the transaction is on a nonce-supported platform. If you sent a nonce in the authorization request but do not see the nonce claim in the ID token, check this claim to determine how to proceed. If this claim returns true you should treat nonce as mandatory and fail the transaction; otherwise, you can proceed treating the nonce as optional.
  • orgId
    Managed Apple ID organization (see https://developer.apple.com/documentation/rosterapi/integrating_with_roster_api_and_sign_in_with_apple)
  • realUserStatus
    A value that indicates whether the user appears to be a real person.
  • subject
    The unique identifier for the user.

Instance Methods

  • verify(using:)
    Verifies that the payload’s claims are correct or throws an error.

Relationships

Conforms To

  • JWTPayload
  • Swift.Decodable
  • Swift.Encodable
  • Swift.Sendable
  • Swift.SendableMetatype