atinux / nuxt-auth-utils

Add Authentication to Nuxt applications with secured & sealed cookies sessions.
MIT License
973 stars 91 forks source link

Updating the session cookie #256

Open patrick-hofmann opened 4 weeks ago

patrick-hofmann commented 4 weeks ago

The session cookie is not updated automatically if the data within the session is not updated.

Repro: in playground nuxt.config.js set runtimeConfig session to:

runtimeConfig: { session: { maxAge: 60, cookie: { maxAge: 10, }, }, },

then login using password. Refresh the page serveral times within 10 seconds, after 10 seconds -> the session is gone (because the cookie is not set in the server response).

PR #255 solves this issue