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

Use Next Auth for authentication #96

Closed amlan-roy closed 6 months ago

amlan-roy commented 6 months ago

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

The current auth flow includes signing in/logging in with firebase, setting session token using the backend auth route, and then using that to look at the auth states. This flow also has its issues and bugs. So to mitigate this issue and follow a more standard way of auth in Next JS, use next-auth in the authentication flow.

Describe the solution you'd like

Are you willing to contribute to this issue?

Yes

Describe alternatives you've considered

NA

Additional context

NA

amlan-roy commented 6 months ago

There were some issue with using next auth-v5 (auth.js) with firebase (particularly with email/pwd auth flow). Not planning to tackle this right now, so closing this for now.