Ask Your Question
3

What is the method for saving firebase Auth data into firestore?

asked 2021-10-07 11:00:00 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-04-05 21:00:00 +0000

huitzilopochtli gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-10-07 11:00:00 +0000

Seen: 14 times

Last updated: Apr 05 '22