fix(auth): issue with token expiration
Merged
RM
5mo ago+112+112+012345678901234567890123456789-7-7-0123456789
Summary
Issue: Slack thread
When the auth token expires, rather than being redirected to the login page, we were displaying a "Something went wrong!" error message. This PR fixes this issue.
Screenshots / Recordings
Testing
- Changes tested locally in the relevant Console's pages and Storybooks
-
yarn testoryarn test -u(if you need to regenerate snapshots) -
yarn format -
yarn lint
PR Checklist
- I followed naming, styling, and TypeScript rules (see
.cursor/rules) - I performed a self-review (diff inspected, dead code removed)
- I titled the PR using Conventional Commits with a scope when possible (e.g.
feat(service): add new Terraform service) - required for semantic-release - I only kept necessary comments, written in English (watch for useless AI comments)
- I involved a designer to validate UI changes if I am not a designer
- I covered new business logic with tests (unit)
- I confirmed CI is green (Codecov red can be accepted)
- I reviewed and executed locally any AI-assisted code