Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
AleCx042265064dYou would do that from Express man. What kind of database are you using? have you any sort of user table in it? have you looked at pasport js?
12bitfloat506464dExpress is more than fine. You just need a database and an npm package to be able to communicate with it
The actual authentication is a lot harder based on what you want to do. The general flow is when someone logs in you create a token, put it into the database and give it to the client. This token is what authenticates them in the future
Make sure to always encrypt and salt passwords (I recommend bcrypt)
Some other things you might want to take a look at are JWT and CSRF attacks
yellow-dog4758564dIf you dont wanna fuck around with login stuff, just use firebase for that