-
Notifications
You must be signed in to change notification settings - Fork 4
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
jd/implements automatic logout modal #440
Conversation
…_modal merged with latest code in main
…_modal insert with latest main
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🟡 | Statements | 62.96% (+0.51% 🔼) |
1610/2557 |
🔴 | Branches | 53.16% (+0.56% 🔼) |
454/854 |
🟡 | Functions | 63.99% (+0.61% 🔼) |
343/536 |
🟡 | Lines | 62.94% (+0.55% 🔼) |
1505/2391 |
Show new covered files 🐣
St.❔ |
File | Statements | Branches | Functions | Lines |
---|---|---|---|---|---|
🟢 | ... / sessionTimeout.tsx |
94.87% | 100% | 100% | 100% |
Test suite run success
156 tests passing in 20 suites.
Report generated by 🧪jest coverage report action from 4e69954
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me! no issues testing with modified times.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this Johanna! One note - before you merge, can you change the pull request title to be a little more descriptive? Since we do squash merges by default, the PR title is what gets shown in the commit history of main, and it's helpful to be able to quickly identify commits!
PULL REQUEST
Summary
This work implements the
SessionTimeout
component which takes care of tracking authenticated user's idle periods and triggers an automatic sign-out.It also handles the logic to prompt the user with a modal which gives the opportunity to stay signed in or sign out on the spot.
Related Issue
Fixes QUE-201
Additional Information
In order to test the idle time you need to make sure that no mouse event is triggered or the timer will reset. Like seriously even moving the mouse counts. You could just adjust the idle time for a shorter period in your local
IDLE_TIMEOUT_MSEC
in the SessionTimeout file.Checklist