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

Detect changes in login status based on cookies #173

Open
zamzterz opened this issue Oct 19, 2020 · 0 comments
Open

Detect changes in login status based on cookies #173

zamzterz opened this issue Oct 19, 2020 · 0 comments

Comments

@zamzterz
Copy link
Contributor

Currently the hasSession call caches all results using a common key (hasSession-cache) in browser session storage.
If the session state reflected in cookies changes it might not be detected until the cache expires.

To detect such changes in cookie state the hasSession result cache key could depend on the session cookie value, for example:

  • key: hasSession-cache for not logged-in user
  • key: hasSession-cache-<cookie value> for logged-in user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant