Open iamdagy opened 4 months ago
in local provider I have in nuxt.config.ts:
session: { enableRefreshOnWindowFocus: true, enableRefreshPeriodically: 3600000 },
it would be nice if it were possible to add :
session: { required:true, callback: '/login' , enableRefreshOnWindowFocus: true, enableRefreshPeriodically: 3600000 },
so when it gets a session response without session /error.. it will redirect immediatly to the callback url
im not sure.. but i think adding and option for visibilityHandler or for enableRefreshOnWindowFocus and enableRefreshPeriodically.
@iamdagy Do you mean an option to automatically redirect to /login page when session invalidates?
/login
Describe the feature
in local provider I have in nuxt.config.ts:
it would be nice if it were possible to add :
so when it gets a session response without session /error.. it will redirect immediatly to the callback url
How would you implement this?
im not sure.. but i think adding and option for visibilityHandler or for enableRefreshOnWindowFocus and enableRefreshPeriodically.
Additional information
Provider