Skip to content

fix(oauth-providers): apply the state check and cookie flags to the x provider - #2223

Merged
yusukebe merged 1 commit into
mainfrom
fix/oauth-x-state
Oct 28, 2026
Merged

yusukebe merged 1 commit into
mainfrom
fix/oauth-x-state

Conversation

@yusukebe

@yusukebe yusukebe commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

The x provider still had the pre-0.8.6 state check, which passed when both the state query and the cookie were missing, and set its state and code-verifier cookies without Secure and SameSite. Align it with the other providers.

Reported by @hadimouter.

The author should do the following, if applicable

  • Add tests
  • Run tests
  • pnpm changeset at the top of this repo and push the changeset
  • Follow the contribution guide

@changeset-bot

changeset-bot Bot commented Oct 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8c793c3

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

This PR includes changesets to release 1 package
Name Type
@hono/oauth-providers 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

@yusukebe
yusukebe merged commit fea6fc2 into main Oct 28, 2026
55 checks passed
@yusukebe
yusukebe deleted the fix/oauth-x-state branch October 28, 2026 11:43
@codecov

codecov Bot commented Oct 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.69%. Comparing base (30732e9) to head (8c793c3).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2223   +/-   ##
=======================================
  Coverage   92.69%   92.69%           
=======================================
  Files         119      119           
  Lines        4354     4355    +1     
  Branches     1135     1135           
=======================================
+ Hits         4036     4037    +1     
  Misses        283      283           
  Partials       35       35           
Flag Coverage Δ
oauth-providers 93.29% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions Bot mentioned this pull request Oct 28, 2026
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