nuxt-auth
nuxt-auth copied to clipboard
Add the possibility to add custom refresh handler
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
- [X] Would you be willing to help implement this feature?
Provider
- [ ] AuthJS
- [ ] Local
- [ ] Refresh
- [ ] New Provider