I am going to develop a new web app with complicated logic using nodejs
.
I am attracted by firebase
because of its convenient user authentication/login (google, facebook, twitter, email-pass login/registration just by lines of code and setting)
Is there any problem if I use google cloud function
for server side.
Q1: Is
firestore
fully secured? I have experience withfirebase realtime database
. But withfirebase realtime database
, all users have nearly similar privilege once they logged in (with any account). It is serious security problemQ2: Can the mentioned above security problem be solved by using
google cloud function
?Q3: Can I do any logic, i.e.
require
ing any external library, ingoogle cloud function
? Is there any limitation thatgoogle cloud function
can't do, compared with standalonenodejs
server?Q4 (maybe not related to the main topic): Should I design my app to rely on
firebase authentication
, which also means my app has to call a firebase API to check for user credentiality, and client web need to load firebase SDK. Is this a good practise on app performance and scalibility?
Thank you very much in advance