HackYourFuture-CPH / Guide-IT

Guide IT, a tool to help newcomers decide their IT path
MIT License
3 stars 1 forks source link

Fullstack: Implementing Firebase User Registration and Authentication #94

Closed dpfernandes closed 3 years ago

dpfernandes commented 3 years ago

User story

Who: As a developer What: I want to be able to connect the Google Button to Firebase Auth service Why: so that we can make sure that users can register through clicking on that button and signing in

Implementation details

Use the existing code in src/client/firebase

https://firebase.google.com/docs/auth/web/google-signin https://firebase.google.com/docs/auth/web/manage-users

And check the https://console.firebase.google.com/u/2/project/class16-fp-guide-it/ for more info

Once the token is generate you should add it to the user table on the DB

Before doing any development you should check this https://github.com/HackYourFuture-CPH/Guide-IT/tree/develop/src/client/firebase and this https://github.com/HackYourFuture-CPH/Guide-IT/tree/develop/src/client/hooks ( authentication hook) and this https://github.com/HackYourFuture-CPH/Guide-IT/tree/develop/src/client/components/Auth (for protected routes)