I set up express.js with passport.js and a rolling cookie session with httpOnly.
Using "@nuxtjs/auth-next": "5.0.0-1624817847.21691f1",
attempt
Because of httpOnly cookie expiration cannot be accessed so I set it manually.
This works, but it leads to the problem that rolling session isn't used and I get logged out after cookie expiration.
attempt
I tried to set token maxAge to false. As long as I did a request before cookie expiration I am fine, the cookie is updated
and I can keep going. But once I won't do a request in time session runs out (as expected), but nuxt auth does not know
an I won't be redirected to the login page.
How do I set up nuxt auth with a rolling cookie session?
I set up express.js with passport.js and a rolling cookie session with httpOnly. Using "@nuxtjs/auth-next": "5.0.0-1624817847.21691f1",
attempt Because of httpOnly cookie expiration cannot be accessed so I set it manually. This works, but it leads to the problem that rolling session isn't used and I get logged out after cookie expiration.
attempt I tried to set token maxAge to false. As long as I did a request before cookie expiration I am fine, the cookie is updated and I can keep going. But once I won't do a request in time session runs out (as expected), but nuxt auth does not know an I won't be redirected to the login page.
How do I set up nuxt auth with a rolling cookie session?
Cookies after login;
nuxt.config.js:
One way I could think of to do that would be to set maxage and having the option to reset auth._token._expiration.local on each request.