Skip to content

fix(next-auth): add missing middleware wrapper type to auth function #13026

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

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

Conversation

k-taro56
Copy link
Contributor

@k-taro56 k-taro56 commented Jun 3, 2025

☕️ Reasoning

This PR adds a missing TypeScript type overload for the auth function when used as a middleware wrapper pattern

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

📌 Resources

@k-taro56 k-taro56 requested a review from ThangHuuVu as a code owner June 3, 2025 15:29
Copy link

vercel bot commented Jun 3, 2025

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 Jun 3, 2025 3:33pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Jun 3, 2025 3:33pm

Copy link

vercel bot commented Jun 3, 2025

@k-taro56 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 Jun 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 39.20%. Comparing base (22c1b8b) to head (e0aabad).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13026   +/-   ##
=======================================
  Coverage   39.19%   39.20%           
=======================================
  Files         200      200           
  Lines       31615    31620    +5     
  Branches     1381     1381           
=======================================
+ Hits        12391    12396    +5     
  Misses      19224    19224           

☔ View full report in Codecov by Sentry.
📢 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.

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.

1 participant