Skip to content

Support extending session length via "Remember Me" checkboxΒ #283

@wemod123

Description

@wemod123

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

This feature request is available on Nuxt community (#c252)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions