Framework

Sign in with Apple JS

Provide users a fast, secure way to sign into your web service with their Apple ID.

Overview

Sign in with Apple is the fastest way to onboard new users securely and provides two-factor authentication. Using Sign in with Apple JS, you can allow users to log into your website with their Apple ID, rather than creating a new account and password.

Enabling Sign in with Apple for your app begins with registering your app in your Apple Developer account. When integrating the API with your app, consider button presentation style, notification options, server integration, and what kind of user information to request.

To communicate between your server and Apple servers, use Sign in with Apple REST API. Alternatively, to let users set up accounts and sign in to your native iOS, macOS, tvOS, and watchOS apps, use the AuthenticationServices framework.

Topics

Essentials

Configuring Your Webpage for Sign in with Apple

Ensure your webpage is ready to authorize users through Sign in with Apple.

Displaying Sign in with Apple Buttons

Use CSS styles and data attributes to display and configure Sign in with Apple buttons in browsers.

Communicating Using the Private Email Relay Service

Communicate with users who opted to use an anonymous email address with Sign in with Apple.

Authentication and Configuration

AuthI

The interface used to authenticate a user.

ClientConfigI

An object that contains a user’s configuration information.

Multiplatform Use

Incorporating Sign in with Apple into Other Platforms

Add Sign in with Apple capabilities to apps that can’t directly access Sign in with Apple JS.