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

Add the possibility to add custom refresh handler #714

Open
1 of 5 tasks
blumewas opened this issue Mar 17, 2024 · 0 comments
Open
1 of 5 tasks

Add the possibility to add custom refresh handler #714

blumewas opened this issue Mar 17, 2024 · 0 comments
Labels
enhancement An improvement that needs to be added p2 Nice to have

Comments

@blumewas
Copy link
Contributor

Describe the feature

As a developer I would like to be able to have full control or at least customize the refreshing behaviour. Currently the SessionConfig only gives me two options enableRefreshOnWindowFocus and enableRefreshPeriodically.

The ability to customize this part would allow me to react to other native BrowserEvents or CustomEvents.

How would you implement this?

I would an option refreshHandler to the auth modules SessionConfig which extends a new type. The type should define functions to enable and clear our custom behaviour.

Additional information

  • Would you be willing to help implement this feature?

Provider

  • AuthJS
  • Local
  • Refresh
  • New Provider
@blumewas blumewas added enhancement An improvement that needs to be added pending labels Mar 17, 2024
@zoey-kaiser zoey-kaiser added p2 Nice to have and removed pending labels Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement that needs to be added p2 Nice to have
Projects
None yet
Development

No branches or pull requests

2 participants