Authentication setup
Guide for settings up authentication methods
The core feature of SwiftSail is authentication. Currently, these authentication methods are supported:
- Apple Sign-In
- Google Sign-In
Apple Sign-In method is requried by Apple Guidelines in case your app offers any kind of authentication method.
1. Enable auth methods in Firebase
First step is to enable the methods in your Firebase Console.
In the left panel, expand Build
and navigate to Authentication
section.
Here, switch to Sign-In method
on the top of the page.
Tap Add new provider
button and select Google
from the list. Switch the toggle to enabled state and confirm.
Now do the same for Apple Sign-In.
Prerequisites: Make sure to follow this Firebase guide first and add your GoogleService-Info.plist
file to the project!
Done 🎉
That's literally it. No need to do anything else to use authentication in SwiftSail!