#Storing account information on firebase

22 messages · Page 1 of 1 (latest)

viscid grotto
#

Hello everyone.

I was wondering if it's secure to store hashes of passwords with the usernames on a database, perhaps with bcrypt.

My goal is to have a login, where the user enters name and password.
His password is then converted via bcrypt and then compared with the information stored on the database, with typescript.

Is this safe, or could someone from the client side through this find out other people's passwords?

modest tide
#

Firebase has Authentication, why not use that? Friends don't let friends code their own authentication and authorization mechanisms in 2022 because it is both a hard, and already solved better than you can on your own problem

viscid grotto
modest tide
#

Why would you make your life hard? @angular/fire exists

viscid grotto
viscid grotto
modest tide
viscid grotto
#

I was told by him not to use compat, because it will be deactivated soon

modest tide
modest tide
viscid grotto
#

Is it generally unsafe to use firebase via the URL? Because I'm under time-pressure and don't have lots of time to rewrite my entire program.

modest tide
#

no, it is just 1000 times harder when you already have a robust package to do it for you

modest tide
#

Not sure what help you got about using AngularFire, but I didn't help, so I suggest you try again

viscid grotto
#

Is the Firebase authentication the only way to protect a certain area of a site? (In my case literally that part where you can post articles as admin)

modest tide
#

Firebase authentication doesn't really do that.

#

You can add rules to Firestore to require authentication and other properties to access certain collections.

viscid grotto
#

thanks

#

I'll look into it

viscid grotto
#

Could I use Firebase for my posts, which I already do

And use firestore seperately for user data?