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

Add optional headers param for logout redirect #2602

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

coryagami
Copy link

WHY are these changes introduced?

This allows for passing Set-Cookie headers to the logout redirect, allowing users the possibility of clearing certain cookies (like the cart) on logout.

This is being used in our app to allow multiple users to share a login device without persisting carts across users.

WHAT is this pull request doing?

Passing through an optional headers param to the logout redirect call.

HOW to test your changes?

Added a new test to customer.test.ts to test this functionality.

Checklist

  • I've read the Contributing Guidelines
  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've added a changeset if this PR contains user-facing or noteworthy changes
  • I've added tests to cover my changes
  • I've added or updated the documentation

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