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

feat: idlemanager reload by default #570

Merged
merged 9 commits into from May 18, 2022
Merged

feat: idlemanager reload by default #570

merged 9 commits into from May 18, 2022

Conversation

krpeacock
Copy link
Contributor

@krpeacock krpeacock commented May 5, 2022

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:

  • My changes follow the guidelines in CONTRIBUTING.md.
  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

By default, refreshes the page unless an alternative CB is provided during initialization or is registered after the fact
@krpeacock krpeacock requested a review from a team May 5, 2022 22:30
Copy link
Contributor

@robin-kunzler robin-kunzler left a 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.

packages/auth-client/README.md Show resolved Hide resolved
packages/auth-client/src/idleManager.ts Outdated Show resolved Hide resolved
packages/auth-client/src/idleManager.ts Outdated Show resolved Hide resolved
packages/auth-client/src/idleManager.ts Outdated Show resolved Hide resolved
@krpeacock krpeacock marked this pull request as draft May 6, 2022 22:23
@krpeacock krpeacock marked this pull request as ready for review May 11, 2022 19:43
Copy link
Contributor

@robin-kunzler robin-kunzler left a 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.

@krpeacock krpeacock merged commit 5177ffd into main May 18, 2022
@krpeacock krpeacock deleted the kyle/idle-reload branch May 18, 2022 20:49
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

Successfully merging this pull request may close these issues.

None yet

3 participants