Skip to content

fix(clerk-js): Force SameSite=none for chips - #5775

Merged
jacekradko merged 4 commits into
mainfrom
fix/force-same-site-none-for-chips
Apr 30, 2025
Merged

jacekradko merged 4 commits into
mainfrom
fix/force-same-site-none-for-chips

Conversation

@jacekradko

Copy link
Copy Markdown
Contributor

Description

Staying standards compliant, and forcing SameSite=none for partitioned cookies

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@vercel

vercel Bot commented Apr 30, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 30, 2025 7:17pm

@jacekradko jacekradko changed the title fix(clerk-js): force SameSite=none for chips fix(clerk-js): Force SameSite=none for chips Apr 30, 2025
@changeset-bot

changeset-bot Bot commented Apr 30, 2025 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 263455d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the cookie settings for the CHIPS build variant by ensuring that the SameSite attribute is forced to "None" and updating the partitioned cookie logic accordingly.

  • Force the SameSite attribute to "None" for CHIPS builds.
  • Adjust the partitioned cookie condition.
  • Update the changeset documentation.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/clerk-js/src/core/auth/cookies/session.ts Updated cookie creation to enforce SameSite "None" and adjust partitioned logic for the CHIPS variant.
.changeset/hungry-foxes-sell.md Added changelog entry documenting the CHIPS build variant cookie behavior change.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jacekradko
jacekradko enabled auto-merge (squash) April 30, 2025 19:16
@jacekradko
jacekradko merged commit fe61d98 into main Apr 30, 2025
@jacekradko
jacekradko deleted the fix/force-same-site-none-for-chips branch April 30, 2025 19:24

This branch was successfully deployed

1 active deployment
Preview — 263455db Deployed Apr 30, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants