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

The application should route to login if the user was automatically logged out / his session is no longer valid #308

Open
mateuszmrw opened this issue Jun 11, 2024 · 2 comments
Labels
feature A new feature to be added.

Comments

@mateuszmrw
Copy link
Contributor

mateuszmrw commented Jun 11, 2024

As in title. I think it's either a feature or a bug. Now if you are automatically logged out you and keep the Tab/PWA App open you need to refresh page or go to login manually. The user should be automatically routed to the login page when it happens.

@simjanos-dev
Copy link
Owner

Oh, I misread this as the logout is broken.

This is a good idea, I'll check if I can implement it. I think I could add a request every 2-5 minutes to check if the session is expired, but I think that would prolong the lifetime of the session. I have similar problems in an other project as well.

@simjanos-dev simjanos-dev added the feature A new feature to be added. label Jun 12, 2024
@mateuszmrw
Copy link
Contributor Author

@simjanos-dev you can try a "naive" approach -> if the front-end gets an Unauthorized Error from the API route to the login. That would require fixing bug that calls user settings and font endpoint on the login page but should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature to be added.
Projects
None yet
Development

No branches or pull requests

2 participants