atinux / nuxt-auth-utils

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

auto extend session cookie #255

Open patrick-hofmann opened 4 weeks ago

patrick-hofmann commented 4 weeks ago

With this PR, the session cookie lifetime is extended on each request to the server

atinux commented 3 weeks ago

Thank you, I believe this should be documented instead as I don't want to slow down the requests by adding a global middleware in this module.

An update in the readme on how to easily extend the user session would be great!

patrick-hofmann commented 3 weeks ago

265 also updates the readme, an example is shown

https://github.com/patrick-hofmann/nuxt-auth-utils/tree/feature/add-server-side-session-storage?tab=readme-ov-file#extending-cookie-lifetime