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

Update firebase.mdx #10820

Closed
wants to merge 1 commit into from
Closed

Conversation

royce-mathew
Copy link

☕️ Reasoning

When trying to call the auth function anywhere inside middleware.tsx, the following issue is encountered.

Module build failed: UnhandledSchemeError: Reading from "node:stream" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
Import trace for requested module:
node:stream
./node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/main.js
./node_modules/.pnpm/firebase-admin@12.1.0/node_modules/firebase-admin/lib/utils/api-request.js
./node_modules/.pnpm/firebase-admin@12.1.0/node_modules/firebase-admin/lib/app/credential-internal.js
./node_modules/.pnpm/firebase-admin@12.1.0/node_modules/firebase-admin/lib/utils/index.js
./node_modules/.pnpm/firebase-admin@12.1.0/node_modules/firebase-admin/lib/app/index.js
./node_modules/.pnpm/firebase-admin@12.1.0/node_modules/firebase-admin/lib/esm/app/index.js
./node_modules/.pnpm/@auth+firebase-adapter@2.0.0_firebase-admin@12.1.0/node_modules/@auth/firebase-adapter/index.js
./src/lib/auth.ts

There should be a warning on the adapter's page displaying that it is not compatible with middleware.

🧢 Checklist

  • [ x ] Documentation
  • [ x ] Tests
  • [ x ] Ready to be merged

🎫 Affected issues

#10819

📌 Resources

Copy link

vercel bot commented May 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 May 5, 2024 5:10am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview May 5, 2024 5:10am

Copy link

vercel bot commented May 5, 2024

@royce-mathew is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

@ndom91
Copy link
Member

ndom91 commented May 6, 2024

Thanks for your interest, but I think we're not going to accept this change, it would set a bad precedent for us documenting all sorts of things for the database and hosting provider itself.

Folks should know whether their database is edge-comaptible or not when using one of those deployment platforms (Vercel, Cloudflare, etc.). We can't be the documentation for the adapter and the hosting provider as well.

@ndom91 ndom91 closed this May 6, 2024
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.

None yet

2 participants