Usage
Prerequisites
- You will need an Apple developer account
- You will need to have created a primary App ID for your Apple developer account
- You will need to have the Magic SDK installed into your web app
- You will need to have the Magic SDK - OAuth Extension installed into your web app
Apple Setup (v1 extension)
- Go to your Magic Dashboard
- Select the Magic app for which you’d like to enable Sign in with Apple, or create a new app
- Navigate to Social Login from the sidebar
- Click the toggle for Apple. Looks like we’ll need to collect a few important details from Apple first: a Services ID, Key ID, Team ID, and Private Key
- Open a new tab, go to your Apple developer dashboard
- Navigate to Membership details
- Find your Team ID. Copy/paste this to the setup form on Magic Dashboard
- In Apple’s dashboard, navigate to Identifiers under Certificates, IDs, & Profiles
- Add a new Services ID for your Magic authentication connection. The identifier you select here should be added to the setup form on Magic Dashboard as your Services ID. Click Continue, then click Register.


- A modal will show, allowing you to connect your Services ID to specific internet domains. In Domains & Subdomains, enter
**auth.magic.link**
. In Return URLs, you’ll paste the Redirect URI listed on Magic Dashboard for your Apple Social Login connection. Once you’ve entered the correct information, you can save your Services ID by clicking Continue, then Save.

Apple Setup (v2 extension)
- In step 11, whitelist your app’s domain in Domains & Subdomains, and paste the Redirect URI you will pass in as the redirectURI argument to the loginWithRedirect method
JavaScript