Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
billhimmelsbach opened this issue Jan 23, 2025 · 1 comment · May be fixed by #1118
Assignees

Comments

@billhimmelsbach
Copy link
Contributor

billhimmelsbach commented Jan 23, 2025

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.
@billhimmelsbach
Copy link
Contributor Author

Going to update the description here with some of the references we chatted about now. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants