-
Notifications
You must be signed in to change notification settings - Fork 0
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
SPA usage on expired session not redirecting to login #2593
Comments
I'm sitting inside a tab, last touched the session 6 days ago. Clicking on left nav links all over, no UI response at all. Console just has things like "Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec." tags-BQLpcI8l.js:1
|
Okay excellent — that was my suspicion here. This was not true even a month ago, but Vite just shipped error handling for this which I think should solve matters: |
Repro:
(presumably) Have session expire (what does it take, a few weeks? but it doesn't seem like activity continuously refreshes it? or maybe major deploys invalidate all sessions, I don't know)
Be on a standard main page (like Subscribers)
Click on a left nav link (like Emails)
Expected: If I've been logged out/expired, then send me to the login page
Actual: mess of 400 errors and similar in the web console, no visible reaction in the UI.
(If I reload the page from the URL, then I DID get sent to the login page at that time.)
The text was updated successfully, but these errors were encountered: