fix: resolve NextAuthConfig type import error in auth.config.ts (closes #455)#472
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
👋 Thanks for opening a PR, @shauryavardhan1307!Your PR has entered the 🚦 PR Review Pipeline.
What happens next
A pipeline status comment will appear below and update automatically as your PR progresses. While you wait
This comment is posted only once. |
WalkthroughThis PR fixes a TypeScript compilation error by correcting the import path for the ChangesType Import Fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
NextAuthConfigtype import path from"next-auth"to"next-auth/types"inauth.config.tsnext-auth@^5.0.0-beta.29(Auth.js v5)where
NextAuthConfigis exported from thenext-auth/typessubpath, not the root
next-authmoduletsc_errors.txt:error TS2305: Module '"next-auth"' has no exported member 'NextAuthConfig'Type of change
Related issue
Closes #455
Validation
npm run lintnpm testnpm run buildAdditional manual verification:
NextAuthConfigis correctly exported fromnext-auth/typesin Auth.js v5 betaauth.config.tscompiles without TypeScripterrors after the fix
Screenshots or recordings
N/A — TypeScript type import fix, no UI changes
Checklist
I am a Gssoc'26 contributo.Please approve the pr.
Thank you!
Summary by CodeRabbit