Sign in with Apple

Sign in with Apple

Sign in with Apple is an OAuth-based authentication service that lets users log into websites using their Apple ID with built-in privacy features. Scripts load the Apple authentication button and handle secure token exchange. Supports email relay to hide user email addresses from websites, and stores session tokens to maintain login state.

Overview

Sign in with Apple is an OAuth 2.0-based authentication service that lets users log into websites using their Apple ID. It is designed with privacy as a core feature, offering email relay (Hide My Email) so users can sign up for services without revealing their real email address. Sign in with Apple appears on websites as a branded login button alongside other social login options.

What This Script Does

Sign in with Apple loads the Apple ID authentication SDK from appleid.cdn-apple.com. The SDK renders the "Sign in with Apple" button and manages the OAuth 2.0 / OpenID Connect authentication flow.

When the user clicks the button, the SDK opens Apple's authentication page (either as a popup or redirect). The user authenticates with their Apple ID credentials and, on first use, chooses whether to share their real email or use Apple's email relay service. Apple then returns an authorization code and an identity token (JWT) to the website's callback URL.

The following data is involved:

  • Authorization code: Single-use code exchanged server-side for access and refresh tokens
  • Identity token (JWT): Contains the user's unique identifier, email (real or relayed), and name (if shared on first login)
  • Session cookies: The website stores session tokens to maintain the authenticated state; these are first-party cookies set by the website, not by Apple

Apple's servers at appleid.apple.com are contacted during the authentication flow. After the initial authentication, ongoing session management is handled by the website's own cookies and tokens. Apple does not set persistent tracking cookies in the user's browser.

Sign in with Apple does not collect browsing behavior, build advertising profiles, or share data with third parties. Apple's email relay system actively prevents the website from learning the user's real email address unless the user explicitly chooses to share it.

Consent & Compliance

Sign in with Apple is classified as essential. It is an authentication mechanism — a core functional requirement for websites that offer Apple ID login as an access method.

Under the GDPR, processing user authentication data falls under contract performance (Article 6(1)(b)) when the user actively initiates a login. The user's explicit action of clicking "Sign in with Apple" and authenticating with their Apple ID constitutes a clear request for the service. Additionally, Apple's privacy-by-design approach (email relay, minimal data sharing) aligns well with GDPR's data minimization principle.

Under the ePrivacy Directive, any cookies or tokens stored during the authentication flow qualify as strictly necessary for a service explicitly requested by the user. Article 5(3) exempts such storage from consent requirements.

Under CCPA/CPRA, Sign in with Apple does not sell or share personal information. Apple acts as an identity provider, and its email relay feature specifically reduces the personal information exposed to the website. The service aligns with CPRA's data minimization requirements.

Should You Block This Without Consent?

No. Sign in with Apple is an authentication service that users explicitly invoke. It processes only the data necessary for login, sets no tracking cookies, and Apple's email relay feature actively protects user privacy. Blocking it behind a consent wall would prevent users from logging in, which defeats the purpose of the service.

Is Sign in with Apple GDPR compliant?

Sign in with Apple's trackers are classified as essential (strictly necessary), so they are generally exempt from prior consent under the GDPR. You should still list them in your cookie policy and privacy notice so visitors know they are there.

Visit website

Consent Categories

Also Known As

Apple ID loginApple OAuthApple SSOApple authenticationApple ID sign-in

Industries

Computers Electronics and TechnologyComputer Hardware

Tracked Domains (3)

apple.comEssential

apple.com is an essential domain operated by Sign in with Apple, used to keep the site working, including security, load balancing, and sessions.

appleid.apple.comEssential

appleid.apple.com is an essential domain operated by Sign in with Apple, used to keep the site working, including security, load balancing, and sessions.

idmsa.apple.comEssential

idmsa.apple.com is an essential domain operated by Sign in with Apple, used to keep the site working, including security, load balancing, and sessions.

Frequently Asked Questions

Related Vendors

Apple Pay
Apple Pay
Apple Pay is a digital payment service that enables secure checkout on websites through Safari and supported browsers. Scripts load the Apple Pay button, present the payment sheet, and process tokenized card transactions without exposing raw payment details to the merchant. Handles biometric authentication via Touch ID or Face ID for payment authorization.
Cal.com
Cal.com
Cal.com embeds scheduling and appointment booking interfaces on websites, enabling visitors to book meetings directly. Scripts load calendar availability, handle time zone detection, and transmit booking confirmations. Data shared includes selected times, attendee contact details, and meeting preferences.
Amazon Cognito
Amazon Cognito
Amazon Cognito is a user authentication and identity management service from AWS. Scripts load the Cognito SDK to handle user registration, login, multi-factor authentication, and OAuth federation with social identity providers. Stores JWT tokens and session cookies in the browser to maintain authenticated state across page navigation and app sessions.
Amazon Pay
Amazon Pay
Amazon Pay is a digital payment service that lets customers check out on third-party websites using their Amazon account credentials. Scripts load the Amazon Pay button and wallet widget, handle address and payment selection, and process transactions through Amazon's payment infrastructure. Stores session cookies to maintain checkout state and authentication.
Microsoft Azure AD
Microsoft Azure AD
Microsoft Azure AD (now Microsoft Entra ID) is a cloud identity and access management service for single sign-on and user authentication on websites. Scripts load the Microsoft Authentication Library to handle OAuth flows, display login prompts, and manage access tokens. Stores authentication cookies and session tokens to maintain user login state across visits.
AWS CloudFront
AWS CloudFront
AWS CloudFront is Amazon's content delivery network that caches and serves website assets from edge locations worldwide. It delivers HTML, CSS, JavaScript, images, video, and API responses from the nearest point of presence to reduce latency. Operates as transparent infrastructure with no advertising or behavioral tracking — purely accelerates content delivery.

Manage consent for Sign in with Apple

ConsentStack automatically detects and manages Sign in with Apple trackers so your site stays compliant with global privacy regulations.