CivicDataLab / CivicDataLab/ParakhAI-frontend
[Bug] Session token expiry causes silent GraphQL failures — RefreshTokenExpired not surfaced to user
Open
@amit0539 is already working on this.
Since Jun 24, 2026.
bug
frontend
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 2
- Avg merge
- 9h 18m
- Merged PRs (30d)
- 4
Description
Summary
When the Keycloak session token expires, RefreshTokenExpired warnings appear in the console but no UI feedback is shown to the user. GraphQL queries silently fail — pages appear loaded but data is missing or stale. Additionally, a backend TypeError is thrown during token validation.
Impact
- Users remain on what looks like a functional page but data is not loading
- No session expiry banner, no redirect to login, no retry prompt
Fix
- Intercept
RefreshTokenExpiredin the auth middleware and redirect to login with a "Your session has expired" message - Fix the backend TypeError in the token validation path
- Add a global GraphQL error handler that catches auth errors and prompts re-login
Report ref: AUTH-001 · Severity: HIGH
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.