Files
Checkmate/client
gorkem-bwl a87ca648dc Restore refresh token functionality for seamless session renewal
## Summary
Restores refresh token functionality that was lost during a previous refactor.
This enables seamless session renewal without forcing users to re-login when
their access token expires.

## Server changes
- Add refresh token configuration to settingsService (7d TTL by default)
- Add issueRefreshToken method to userService
- Update login/register/resetPassword to return refreshToken
- Add refreshAuthToken method to userService for token refresh
- Add refreshAuthToken controller method
- Add POST /auth/refresh route
- Update verifyJWT middleware to return 403 for expired tokens (triggers refresh)
  and 401 for invalid tokens (triggers logout)

## Client changes
- Store refreshToken in Redux auth state
- Clear refreshToken on logout
- Add setAuthToken action for updating token after refresh
- Update NetworkService to handle 403 responses:
  - Call /auth/refresh endpoint to get new token
  - Retry failed request with new token
  - Queue concurrent requests during refresh
  - Redirect to login if refresh fails
2026-01-15 22:28:07 -05:00
..
2025-04-20 11:29:53 -07:00
2025-04-20 11:29:53 -07:00
2025-10-08 14:52:21 -07:00
2025-06-24 15:40:50 +08:00
2026-01-09 13:36:58 -08:00
2025-04-20 11:29:53 -07:00
2025-04-20 11:40:32 -07:00
2025-05-27 09:10:32 -07:00
2026-01-12 23:57:39 +00:00
2025-10-08 13:44:41 -07:00
2025-05-27 09:10:32 -07:00
2025-05-27 09:10:32 -07:00
2025-09-26 14:36:15 -07:00
2025-09-26 14:22:25 -07:00

This directory contains the client side (frontend) of Checkmate.