Is there cookies expiration in vercel?
Answered
Japanese littleneck posted this in #help-forum
Japanese littleneckOP
Hello,
I'm using Next.js 13 pages directory, I'm storing the user token in cookies using
The question is what is the expiration limit for the cookie in vercel? or is it depends in the expiration days I set from
I'm asking just to be sure if there is a expiration limit for the cookies that I might not know.
I'm using Next.js 13 pages directory, I'm storing the user token in cookies using
js-cookies, and access the cookie directly in server side props function using req.cookies.The question is what is the expiration limit for the cookie in vercel? or is it depends in the expiration days I set from
js-cookies options, or there is not expiration at all?I'm asking just to be sure if there is a expiration limit for the cookies that I might not know.
Answered by fuma
It’s not related to Vercel, the expiration date only depends on your options passed to
js-cookies, or the way you set the cookie.1 Reply
It’s not related to Vercel, the expiration date only depends on your options passed to
js-cookies, or the way you set the cookie.Answer