Security

As per the security concern, every database has a different way of securing data from unauthorized users:

Source: https://firebase.google.com/docs/firestore/rtdb-vs-firestore?authuser=0.

Realtime Database Cloud Firestore
Cascading rules that require separate validation.
  • Firebase Database Rules are the only security option.
  • Read and write rules cascade.
  • You need to validate data separately using .validate in the rule.
Simpler, more powerful security for mobile, web, and server SDKs.
  • Mobile and web SDKs use Cloud Firestore Security Rules, and server SDKs use Identity and Access Management (IAM).
  • Rules don't cascade unless you use a wildcard.
  • Data validation happens automatically.
  • Rules can constrain queries; if a query's results might contain data the user doesn't have access to, the entire query fails.

As of now, Cloud Firestore is available in beta version; so, in this book, we are only focusing on Realtime Database.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset