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

Authenticated users redirected to login page while session is being re-fetched #621

Open
VeeBack opened this issue Dec 26, 2023 · 0 comments
Labels
bug A bug that needs to be resolved p3 Minor issue

Comments

@VeeBack
Copy link

VeeBack commented Dec 26, 2023

Environment

No response

Reproduction

No response

Describe the bug

With enableRefreshPeriodically enabled, while the session is being fetched the authenticated state is set to "loading". This means that when the middleware check happens, since it checks for the state to be "authenticated", it gets treated as the user is unauthenticated while the data is being fetched.

If the user attempts to navigate to another page, during the time the session is in the process of being re-fetched, they are sent to the login page.

Additional context

No response

Logs

No response

@VeeBack VeeBack added the bug label Dec 26, 2023
@zoey-kaiser zoey-kaiser added p3 Minor issue bug A bug that needs to be resolved and removed bug labels Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug that needs to be resolved p3 Minor issue
Projects
None yet
Development

No branches or pull requests

2 participants