Skip to content

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants