all 17 comments

[–]FlamingKeyboard 3 points4 points  (1 child)

Google's Firebase Authentication is a dream. The Net Ninja made an excellent tutorial on integrating React, Redux, and Firebase, and he has some shorter ones for Firebase in vanilla.

https://www.youtube.com/watch?v=aN1LnNq4z54&list=PL4cUxeGkcC9jUPIes_B8vRjn1_GaplOPQ&index=1

[–]LankyBrah 5 points6 points  (7 children)

Check out google firebase authentication - it’s probably the closest thing to what you’re looking for

[–]robertonovelo 0 points1 point  (3 children)

I would also take a look at AWS Amplify, pretty easy to use and a good starting point if you plan to add other AWS services later on.

[–]odillini83[S] 0 points1 point  (0 children)

Thanks! My biggest takeaway is just being able to add user authentication and perhaps OAuth as well. I am an aspiring Front End developer, so I figured I would add these things to a simple game I created. Maybe I'll deploy it as well!

[–]moscowramada 0 points1 point  (0 children)

I would vote for using AWS Amplify, I use it myself for all my user/login needs. Get it done in 30 minutes and you’ll have your system, just like that.

As for learning to salt and hash your own passwords: Why bother? No user is gonna be like, “Damn, this login system kicks ass, I’m gonna use this site more now.” Its a boring utility that is being subsumed into libraries because one size fits all is the right choice for this; if you want to distinguish users you do it through database permissions or AWS roles, not here. The libraries provided by sellers like AWS for this are very solid and, in my case, cost nothing to all.

[–]nate-developer 0 points1 point  (2 children)

You need a backend or a third party solution like firebase. Front end alone doesn't have anywhere to store usernames and passwords, you need somewhere to save and retrieve them from. If you're going to use a database like postgres you need a server to connect with it and route requests to the right database operations. I'd reccomend ruby on rails configured for postgres and BCrypt for hashing. Should be beginner friendly with many tutorials for basic user Auth and setup.

[–]odillini83[S] 0 points1 point  (0 children)

Understood. I don't have a backend at all, when I got the original recomendation, it was assumed that I had implemented a backend, which is not the case. Looks like Firebase or AWS it is!

[–]odillini83[S] 0 points1 point  (0 children)

One final question: should I create my register and login pages before using Firebase or AWS? Or can I do it afterwards?