You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adaptersChanges related to the core code concerning database adaptersbugSomething isn't workingtriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
When setting up Auth.js (next-auth@beta) with drizzle adapter and using middleware nextjs server (edge runtime) throws adapter error.
[auth][error] AdapterError: Read more at https://errors.authjs.dev#adaptererror
[auth][cause]: Error: The edge runtime does not support Node.js 'perf_hooks' module.
Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime
at Object.get (/app/.next/server/edge/chunks/_3fb3d8._.js:62:19)
at createSocket (/app/.next/server/edge/chunks/1350d_postgres_src_2fa65c._.js:815:273)
at Timeout.connect [as _onTimeout] (/app/.next/server/edge/chunks/1350d_postgres_src_2fa65c._.js:969:35)
at listOnTimeout (node:internal/timers:581:17)
at process.processTimers (node:internal/timers:519:7)
[auth][details]: {}
How to reproduce
Setup reproduction project (change variables in compose.yaml)
clear localStorage and cookies if any
look at logs and see that everything is file
navigate to localhost:3000 and click on Sign in button
look at logs again and see the error message
Expected behavior
Using middleware should not throw any errors in console
The text was updated successfully, but these errors were encountered:
ywwa
added
adapters
Changes related to the core code concerning database adapters
bug
Something isn't working
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
labels
Dec 19, 2024
adaptersChanges related to the core code concerning database adaptersbugSomething isn't workingtriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Adapter type
@auth/drizzle-adapter
Environment
Reproduction URL
https://github.com/ywwa/NextJsAuthJsReprod
Describe the issue
When setting up Auth.js (next-auth@beta) with drizzle adapter and using middleware nextjs server (edge runtime) throws adapter error.
How to reproduce
localhost:3000
and click onSign in
buttonExpected behavior
Using middleware should not throw any errors in console
The text was updated successfully, but these errors were encountered: