Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Implement Sign In with Apple

Ben Myers edited this page Apr 23, 2022 · 2 revisions

Thanks for choosing EasyFirebase! πŸŽ‰ Follow these steps to implement Apple Sign-In into your iOS or macOS project.

Requisites

Set Up Your Project

⚠️ Before you begin, make sure to have an active enrollment in the Apple Developer Program.

Configure Sign in With Apple

Enable Sign In with Apple for your app on the Certificates, Identifiers & Profiles page of Apple's developer site.

If you use any of Firebase Authentication's features that send emails to users, including email link sign-in, email address verification, account change revocation, and others, configure the Apple private email relay service and register noreply@YOUR_FIREBASE_PROJECT_ID.firebaseapp.com (or your customized email template domain) so Apple can relay emails sent by Firebase Authentication to anonymized Apple email addresses.

Add Apple Sign-In to Firebase Auth

Go to your Firebase Console. Select the Authentication tab, then Sign-in Method. Click Add new provider, then choose Apple.

If you need to, copy the authorization callback URL. Then click Save.

Implement Apple Sign-In in Your Project

Open your Project, then navigate to Signing + Capabilities. Choose your app's target, then click the + button to add the Sign in with Apple capability.

⚠️ You'll need to call signInWithApple() from an Apple-provided Sign In with Apple button. For more information on how to add this into your iOS/macOS project, see this developer article.

You can then sign in with Apple easily using EasyAuth's static method:

EasyAuth.signInWithApple()