Reputation: 81
i was wondering if its dangerous to show the user the id, which Firebase Cloud Firestore generates when creating an new document
Thanks for your answer
Upvotes: 0
Views: 348
Reputation: 6742
Primary Keys are usually shown to users. May it be your bank account number, your user id on platform X - it's not a problem in general, as long as the access in your application is limited properly.
Upvotes: 1
Reputation: 317760
In general, no, it is not dangerous, unless you are using that document ID as a secret key somewhere else in your system. Since we don't know exactly how you're using this ID, it's not really possible to say for sure.
Upvotes: 1