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

Fix Login route breaks after session expired #132

Closed amlan-roy closed 1 week ago

amlan-roy commented 1 week ago

Issue: https://github.com/amlan-roy/resume-craft/issues/131

Summary

The issue was happening because the auth.currentUser was not being deleted as the user was actually never logged out from the client side. Fixed that issue by updating the login hook to make get call to the login api route, and logging out the user in case the get request returns a error/logged out state and currentUser is still available locally.

Details

Testing done

Tested the UI locally

Screenshots / Videos

Checklist:

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
resume-craft ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 9, 2024 9:44pm