Skip to content

[Auth] Redirect user to the home page instead of a 500 page if their auth tokens fail to be refreshed #1117

@billhimmelsbach

Description

@billhimmelsbach

Currently when a user loses connection to our app (closing their laptop lid, losing internet connection, etc), a user could resume their connection but try to make API calls with expired tokens. Instead of being taken to a 500 page, they should be redirected to the home page as a MVP solution.

  • Since it looks like users are getting redirected to the /500 url itself, and not just the url staying the same but showing the 500 page, seems like it's probably related to the useError500 function. It's used 3 or so times in the app.
  • I'll message you with the recording with me showing this behavior.
  • Let me know if you want any help re-creating the issue, I wrote up how to adjust the keycloak timeout over here in this PR.
  • Just redirecting these users to the unauthenticated home page seems like a good place to start.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions