Feature/addlogoutfunctionaity #34 issue part-2#45
Conversation
|
Warning Review limit reached
More reviews will be available in 59 minutes and 22 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more credits in the billing tab to continue. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hey @arpitasi1gh, great work on the UI side of this! The layout looks clean, and the button is wired up perfectly to redirect the user. I was looking through the code, and while the frontend state clears correctly, we have one critical logic gap we need to patch in frontend/src/context/AuthContext.jsx. Right now, your logout function looks like this: JavaScript Could you update the logout function to make an API call to our backend logout route before clearing the state? It should look something like this: JavaScript Update the logout function in AuthContext.jsx to call the backend. Resolve that merge conflict in Navbar.jsx by pulling the latest main branch. Once those two things are done, I'll happily get this merged for you! |
Related Issue
Fixes #34
Problem
Users could not properly sign out. The AuthContext had no logout method, and the Navbar had no logout button, leaving users unable to end their sessions.
Solution
logout()function toAuthContextthat clears user stateResult
Users can now: