Nig0
Nig0

Reputation: 81

Is it dangerous to display the id of an Firestore document to the user?

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

Answers (2)

maio290
maio290

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

Doug Stevenson
Doug Stevenson

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

Related Questions