newest create-t3-app (next 15) , drizzle (postgresql) and authjs v5 beta middleware problem
everything is normal before i add middleware.ts
here's the errors:
[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.
[auth][error] SessionTokenError: Read more at https://errors.authjs.dev#sessiontokenerror
[auth][cause]: Error: The edge runtime does not support Node.js 'perf_hooks' module.
Solution:Jump to solution
my bad, sorry guys im stupid.
found the solution:
https://authjs.dev/getting-started/migrating-to-v5#edge-compatibility
...
Migrating to v5
Authentication for the Web
1 Reply
Solution
my bad, sorry guys im stupid.
found the solution:
https://authjs.dev/getting-started/migrating-to-v5#edge-compatibility
add this in auth config:
session: { strategy: "jwt" },
Migrating to v5
Authentication for the Web