Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change cc-nx-g expiry to 30 days #1342

Merged
merged 1 commit into from
Jul 10, 2023
Merged

Conversation

vcua-mobify
Copy link
Contributor

@vcua-mobify vcua-mobify commented Jul 5, 2023

According to our documentation, logged in users refresh tokens (saved as cc-nx) are valid for 90 days in production. Meanwhile guest refresh tokens (saved as cc-nx-g) are valid for only 30 days in production.

PWA Kit currently sets both cc-nx-g and cc-nx cookies to live for 90 days.

This PR changes the expiry of cc-nx-g cookies to match the validity period of guest refresh tokens.

NOTE: DO NOT MERGE UNTIL THE SAME CHANGE CAN BE MADE IN Plugin_SLAS (see https://github.com/SalesforceCommerceCloud/plugin_slas/pull/153)

We want to make this change in both PWA and plugin_SLAS so that the expiry times remain consistent on hybrid sites.

@vcua-mobify vcua-mobify requested a review from a team as a code owner July 5, 2023 23:07
@vcua-mobify vcua-mobify merged commit e7422cc into develop Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants