vuestorefront-community / vendure

Vue Storefront 2 integration for Vendure
https://docs.vuestorefront.io/vendure/
MIT License
72 stars 51 forks source link

[Bug]: login cookie expiry time incorrect #246

Open Quiark opened 9 months ago

Quiark commented 9 months ago

Expected Behavior

when I make a new login, I get a cookie with expiry being 14 days from now

Actual Behavior

I get a cookie with expiry time 14 days after this process has been started. Which could be in the past if the thing has been runing for 2 weeks already.

Possible Solution

The problem is in helpers/cookie.ts which stores static cookies options object with the expiry date set once at start

Steps to reproduce

No response

What version of vendure integration are you using?

1.1.0

What version of Node.js are you using?

18

What browser (and version) are you using?

chrome

What operating system (and version) are you using?

linux

Relevant log output

No response

Code of Conduct