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.
No description
No description
No description
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
No description
Jump to solution
1 Reply
Solution
_theycallmerk
_theycallmerk3w ago
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
No description
Want results from more Discord servers?
Add your server