Ask Your Question

Revision history [back]

To save Firebase Auth data into Firestore, you can follow these steps:

  1. Create a Firestore collection to store user data associated with each authenticated user.

  2. 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.

  3. 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.

  4. Make sure to set up Firestore security rules to ensure that only authenticated users can read or write data in the collection.