Conversation
Call the logout endpoint (`/api/user/login`) when the `logout` method is invoked. This replaces the previous behavior of only clearing the local session token. Any errors during the API call are caught and logged.
WalkthroughVersion 3.4.2 is documented in the changelog. The platform client's logout method is updated to perform an actual HTTP DELETE request to the logout endpoint instead of using a placeholder implementation, with error handling and logging included. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🔇 Additional comments (2)
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 |
Call the logout endpoint (
/api/user/login) when thelogoutmethod is invoked. This replaces the previous behavior of only clearing the local session token. Any errors during the API call are caught and logged.Summary by cubic
Logout now calls the backend endpoint (/api/user/login) to invalidate the server session instead of only clearing the local token. Errors from the request are caught and logged, and the local session is still cleared.
Written for commit 8c8db96. Summary will update automatically on new commits.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.