-
Notifications
You must be signed in to change notification settings - Fork 389
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
How to do checkSession without making session rolling? #1458
Comments
#1116 this PR has implemented similar thing I need. |
ok. what I wanted to do can be done by disabling @adamjmcgrath @aovens-quantifi Is it possible to do other way around as well with current implementation? Basically I like to enable |
ok, after investigating a bit, the best option seems to be
let me know if there is even better way |
We deliberately chose to do it this way in order to have the smallest blast radius. This way your "don't touch the session" logic can be whatever you want it to be and the rest of the time you just call touchSession |
EDIT: I previously mentioned @aovens-quantifi thanks for the comment 👍 |
Quick question related to this issue: I can't seem to find |
@cjsauer I'm also using 3.1.0. you can find it from |
Ah okay. Is there a reason that it isn't available for managed instances? Seems like it used to be from what I can tell combing through commit history. |
@cjsauer ok. I took a look a bit. It seems it was never implemented as an exported function, which seems a simple mistake from the beginning. I think you can open PR to add it.
I saw the commit that you might refer to but it was just moving around things that are in |
opened PR: #1461 |
Merged #1461 - will ship it this week |
Checklist
Describe the problem you'd like to have solved
I think it's pretty common feature but I can't find simple solution, which is kicking out user automatically after
rollingDuration
has passed.the same question in auth0 community: https://community.auth0.com/t/checksession-counts-as-session-activity/27521
basically, when I use
checkSession
in a poller (e.g every 10 minutes), it makes session rolling and can't achieve the auto logout. (classic thing that your heartbeat keeps you awake)Describe the ideal solution
there should be an way to check session without making session rolling.
Alternatives and current workarounds
user
'supdated_at
and calculate the session's time which is not ideal.Additional context
No response
The text was updated successfully, but these errors were encountered: