-
Notifications
You must be signed in to change notification settings - Fork 98
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
feat: idlemanager reload by default #570
Conversation
By default, refreshes the page unless an alternative CB is provided during initialization or is registered after the fact
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 a lot for implementing this right away @krpeacock ! I like the solution of registering also a reload on idle.
But IIUC there is a bug, see my comments below.
…into kyle/idle-reload
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.
@krpeacock : Looks great, thanks! I like the API and the test that verifies that both the storage is cleared and the reload happens. 👍 Approving the PR.
Description
To further enhance the IdleManager's default configuration for security, IdleManager now provides a default callback that will refresh the page, fully exiting the session.
The developer is still encouraged to register their own callback to enhance the user experience. Passing a custom callback will override the default callback
Checklist: