StarterAppKit provides built-in support for multiple authentication methods including:
Before proceeding, ensure you've followed the Quick Start Guide to:
Once those steps are complete, the basic email/password and magic link authentication will work out of the box.
To enable Google and Apple Sign-In, follow the steps below.
Good news: No additional steps are required for Apple Sign-In!
We've already integrated the necessary code to handle Apple authentication. As long as your backend and Apple Developer settings are configured correctly, Apple Sign-In is ready to use.
What does “correctly configured” mean for Apple Sign-In?
That's it. Apple Sign-In should now work as intended.
To enable Google Sign-In, you’ll need to provide a few credentials in the iOS app’s Info.plist
. This involves:
iOS URL scheme
and the Client ID
.Your REVERSED_CLIENT_ID
looks something like this: com.googleusercontent.apps.1234567890-abcdefg
This reversed ID will serve as your URL Scheme.
Location: iosStarterApp/Info.plist
Add the following entries to your Info.plist
:
YOUR-GOOGLE-URL-SCHEME
with the iOS URL scheme
copied from your Google Cloud Console.YOUR-GOOGLE-CLIENT-ID
with the Client ID
copied from your Google Cloud Console.That's All you have to do for the mobile app!
On the Backend ( Server Code ), you only need to set the value of GOOGLE_CLIENT_ID
in your .env
file. Once this is set, you should be able to start using Google Auth in your app.