amlan-roy / resume-craft

Resume Craft: Your go-to platform for effortlessly tailoring ATS-friendly resumes to job descriptions. Streamline your job application process and stand out in the competitive market.
https://resume-craft-ten.vercel.app
7 stars 3 forks source link

Add authentication #56

Closed amlan-roy closed 7 months ago

amlan-roy commented 7 months ago

Is your feature request related to a problem? Please describe.

What

Need to add proper authentication (signup, sign in, reset password) functionality for our page. Should also give the option to login using google.

Only the landing page is not a protected route. Rest all the routes are protected routes and will require sign in. Will protect the routes in middleware using cookies.

Why

Already implemented basic auth and authorization using google's auth. Managing the auth using cookies. The issue with that is that we are facing authorization error even after having fresh authorization token. Not able to figure out the root cause, and already spent too much time on it. Since I need to get this up and running as fast as possible, I have decided to go ahead with using firebase for auth, storage and even the resume generation.

So this issue is a part of adding the auth using firebase.

Describe the solution you'd like

Use firebase for authentication (Sign in, Sign up and reset password). Also provide an option to login using google.

Store the user session in a secure http cookie.

All the routes except the landing page should be protected.

Implement this route guarding using middleware.

Are you willing to contribute to this issue?

Yes