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

[FIX] shopinvader_anonymous_partner: auth cookie reseted #1568

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

benwillig
Copy link
Contributor

@benwillig benwillig commented Sep 23, 2024

When reseting shopinvader-anonymous-partner cookie, a new set-cookie option is set inside the headers of the response. However, it seems that only the last operation is received by the client so the auth cookie is lost so the user is no longer authentiticated for the next operation. As the auth cookie has already been set earlier, we can avoid reseting shopinvader-anonymous-partner-cookie.

This can be tested simply by setting a cookie at the end of the /signin operation from a jwt token.

I think this PR should not be merged as this might not be the right fix.

cc @lmignon

when reseting shopinvader-anonymous-partner cookie, a new set-cookie option is
set inside the response. However, it seems that only the last operation is received by
the client so the auth cookie is lost. As the operation cookie has already been set earlier,
we can avoid reseting shopinvader-anonymous-partner-cookie
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.

1 participant