iamolegga / nestjs-cookie-session

Idiomatic Cookie Session Module for NestJS. Built on top of `cookie-session` 😻

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set cookie expires option

rsofista opened this issue · comments

Hey, I couldn't find anything specific to this library so I'm gonna ask here:

How do I change the expiration date of a cookie?
I have a website with a "remember me" option.

Hi, underlying lib has example on this in the docs: https://www.npmjs.com/package/cookie-session#per-user-sticky-max-age