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. Sign in with Apple also 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 having to create a new account and password.

Enabling Sign in with Apple for your app begins with registering your app in your Apple Developer account. Choosing the user information to ask for, button presentation style, server integration, and notification options are important steps to consider when integrating the API with your app.

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 and Configuring 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.