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

V4 dev app: fix broken import links for authOptions #8938

Merged
merged 4 commits into from
Nov 4, 2023

Conversation

goerlitz
Copy link
Contributor

Fix broken authOptions import paths pointing to outdated file.

☕️ Reasoning

There are two files defining the authOptions in the dev app:

  • apps/dev/app/api/auth/[...nextauth]/route.ts -> most recent version
  • apps/dev/pages/api/auth-old/[...nextauth].ts -> outdated version with folder renamed to `auth-old``

However, several pages (e.g. apps/dev/pages/api/examples/protected.js) were still importing the outdated version in the old auth folder (before renaming). Thus, the dev app (pnpm dev) would not work properly and throw errors.

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

Fixes: #8934

@vercel
Copy link

vercel bot commented Oct 24, 2023

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

Name Status Preview Comments Updated (UTC)
next-auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 4, 2023 8:55am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
auth-docs ⬜️ Ignored (Inspect) Visit Preview Nov 4, 2023 8:55am

@vercel
Copy link

vercel bot commented Oct 24, 2023

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

A member of the Team first needs to authorize it.

@ThangHuuVu ThangHuuVu merged commit 18e8b92 into nextauthjs:v4 Nov 4, 2023
7 of 9 checks passed
@goerlitz goerlitz deleted the v4 branch November 5, 2023 23:46
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.

2 participants