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(next-auth): cannot parse action at /session #10218

Merged

Conversation

bwallberg
Copy link
Contributor

☕️ Reasoning

All frameworks should use the core util createActionsURL(), however since next-auth doesn't provide the request itself we have to rely on the x-forwarded-proto header that next-auth sets so instead of calling createActionsURL directly we wrap it to avoid some unnecessary code duplication.

Depends on #10094

🧢 Checklist

  • [] Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

Fixes the original issue described in #10081
Depends on #10094

📌 Resources

fix: support apps hosted on subpaths
@bwallberg bwallberg requested a review from ThangHuuVu as a code owner March 5, 2024 07:35
Copy link

vercel bot commented Mar 5, 2024

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

Name Status Preview Comments Updated (UTC)
auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 16, 2024 2:32pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Mar 16, 2024 2:32pm

Copy link

vercel bot commented Mar 5, 2024

@bwallberg is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

codecov bot commented Mar 8, 2024

Codecov Report

Attention: Patch coverage is 0% with 34 lines in your changes are missing coverage. Please review.

Project coverage is 39.35%. Comparing base (5bca263) to head (72b6cfc).

Files Patch % Lines
packages/next-auth/src/lib/actions.ts 0.00% 25 Missing ⚠️
packages/next-auth/src/lib/index.ts 0.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10218      +/-   ##
==========================================
- Coverage   39.36%   39.35%   -0.01%     
==========================================
  Files         171      171              
  Lines       27288    27292       +4     
  Branches     1159     1165       +6     
==========================================
  Hits        10742    10742              
- Misses      16546    16550       +4     

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

packages/next-auth/src/lib/actions.ts Outdated Show resolved Hide resolved
@ThangHuuVu ThangHuuVu merged commit 3c035ec into nextauthjs:main Mar 16, 2024
11 of 15 checks passed
@bwallberg bwallberg deleted the fix/next-auth_cannot_parse_action branch March 22, 2024 08:17
JipSterk pushed a commit to JipSterk/next-auth that referenced this pull request Apr 3, 2024
* fix(next-auth): cannot parse action at /session

fix: support apps hosted on subpaths

* refactor: use createActionURL from core directly

---------

Co-authored-by: Nico Domino <[email protected]>
Co-authored-by: Thang Vu <[email protected]>
JipSterk pushed a commit to JipSterk/next-auth that referenced this pull request Apr 3, 2024
* fix(next-auth): cannot parse action at /session

fix: support apps hosted on subpaths

* refactor: use createActionURL from core directly

---------

Co-authored-by: Nico Domino <[email protected]>
Co-authored-by: Thang Vu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants