-
Notifications
You must be signed in to change notification settings - Fork 910
Description
What problem does this feature solve?
It's Normal for website login, to have a choice of "remember me", in that case user should not need to input credentials next time, until the cookies expired.
Today, the expires can be set in nuxt.config.js->auth->cookie->options.
But it's very hard to programatically change it in Vue component, login page for example.
There is API of this.$auth.$storage.setCookie(key, val, isJson), but only change cookies related value, and can not change globally the expires value, so it will not be valid eventually.
There are another API: this.$auth.$storage.setUniversal() but the expires options can not be passed in currently.
I'm not sure if this is a bug or I made some mistake, but it's essential to enable this feature.
What does the proposed changes look like?
Enable programatically change the cookie expires value globally, in Vue component