Skip to content

Conversation

@hbbayrak
Copy link

Summary

  • Clear stored credentials and reload the page when receiving 401/403 responses with a stale token
  • Includes guard against infinite reload loops

Changes

  • client/src/services/api.ts: Enhanced axios interceptor to handle stale sessions

Test Plan

  • Login to the app, note the session
  • Reset the database while keeping browser open
  • Attempt any API call - app should clear localStorage and reload cleanly
  • Verify no infinite reload loops occur

Clear stored credentials and reload the page when receiving 401/403
responses with a stale token. Includes guard against infinite reload
loops.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant