A simple authentication flow in swift using firebase authentication and firestore database.
- User login
- User sign up
- User sign out
- Recovery password
- Social Authentication
The following tools were used to build the project:
- Swift 6.0
- Firebase Authentication
- Firebase Firestore Database
- Cocoapods
To run this app you need to generate a GoogleService-Info.plist in firebase
- Access the Firebase Console
- Choose an existing project or create a new one if none exists.
- Add an iOS App to the Project:
- In the Firebase dashboard, click “Add app” and select iOS.
- Download the GoogleService-Info.plist
- Add GoogleService-Info.plist to Xcode
- Activate Firestore and Create a Collection
- In the Firebase Console, navigate to Build > Firestore Database.
- Click “Create database” and follow the prompts to set it up.
- Choose the appropriate security rules and click “Enable”.
- Once Firestore is active, create a collection named “users” to store user data.
- To finish, run
pod install
in the terminal to install the firebase dependencies.
Edson Brandon