1 | initial version |
To save Firebase Auth data into Firestore, you can follow these steps:
Create a Firestore collection to store user data associated with each authenticated user.
In your authentication code, use the Firebase Auth SDK to detect when a user logs in or signs up. After the user is authenticated, create a new document in the Firestore collection for that user.
In the document, store any user data that you want to associate with that user. This might include a display name or other profile information.
Make sure to set up Firestore security rules to ensure that only authenticated users can read or write data in the collection.