Auth Token Refresh Testing

Current Auth State

Authenticated: false
User: None
Has Access Token: false
Has Refresh Token: false
Access Token:
None
Refresh Token:
None
Button Disabled State: true

Test Actions

Testing Instructions

  1. Make sure you're logged in first (go to /login if needed)
  2. Test Manual Refresh: Manually calls the refresh endpoint to get new tokens
  3. Simulate Expired Token: Makes an API call that might trigger a 401 (if backend supports token expiry)
  4. Corrupt Access Token: Intentionally corrupts your access token to force a 401, which should trigger automatic refresh
  5. Watch the browser console for detailed logs of the refresh flow
  6. Open DevTools → Application → Local Storage to see tokens being updated