Docs

Add Sign in with Apple to Your App

Auth0 enables you to use the Sign In with Apple (SIWA) capability to provide Apple-based authentication to your applications. You can include SIWA for your native Apple applications, web applications, or applications that run on other platforms (such as Android).

The Apple App Store Developer Guidelines require that SIWA must be available in all applications that exclusively use third-party sign-in options, such as Facebook or Google.

Prerequisites

Before you add support for SIWA to your app, you'll need:

How it works

Once you have registered your application with Apple and configured your application connection settings in Auth0 to use the IDs and keys obtained from Apple, your users can sign in to your applications using their Apple IDs and passwords.

Apple Sign In with Apple Setup Flow

When a user returns to your app, you can log them in automatically if their login session is still valid. To check, you can retrieve their credentials from the keychain and check if the access token is still valid. If the access token has expired, you can renew it using a refresh token.

After you set up and configure SIWA and exchange the authorization code for Auth0 credentials, you can assign roles to users, and use the access tokens to call APIs and link user accounts.

Keep reading