Nextjs in standalone mode with Auth.js(v5) returns JWTSessionError

hello. I'm getting this error:
2024-03-17 18:39:53 [auth][error] JWTSessionError: Read more at https://errors.authjs.dev#jwtsessionerror
2024-03-17 18:39:53 [auth][cause]: Error: no matching decryption secret
2024-03-17 18:39:53 at tI.clockTolerance (/app/.next/server/chunks/696.js:17:58648)
2024-03-17 18:39:53 at t_ (/app/.next/server/chunks/696.js:17:44016)
2024-03-17 18:39:53 at tk (/app/.next/server/chunks/696.js:17:45092)
2024-03-17 18:39:53 at tI (/app/.next/server/chunks/696.js:17:53016)
2024-03-17 18:39:53 at Object.tz [as decode] (/app/.next/server/chunks/696.js:17:58494)
2024-03-17 18:39:53 at iI (/app/.next/server/chunks/696.js:373:39347)
2024-03-17 18:39:53 at iW (/app/.next/server/chunks/696.js:373:45483)
2024-03-17 18:39:53 at async iq (/app/.next/server/chunks/696.js:373:49700)
2024-03-17 18:39:53 at async a (/app/.next/server/app/signin/page.js:1:4483)
2024-03-17 18:39:53 [auth][error] JWTSessionError: Read more at https://errors.authjs.dev#jwtsessionerror
2024-03-17 18:39:53 [auth][cause]: Error: no matching decryption secret
2024-03-17 18:39:53 at tI.clockTolerance (/app/.next/server/chunks/696.js:17:58648)
2024-03-17 18:39:53 at t_ (/app/.next/server/chunks/696.js:17:44016)
2024-03-17 18:39:53 at tk (/app/.next/server/chunks/696.js:17:45092)
2024-03-17 18:39:53 at tI (/app/.next/server/chunks/696.js:17:53016)
2024-03-17 18:39:53 at Object.tz [as decode] (/app/.next/server/chunks/696.js:17:58494)
2024-03-17 18:39:53 at iI (/app/.next/server/chunks/696.js:373:39347)
2024-03-17 18:39:53 at iW (/app/.next/server/chunks/696.js:373:45483)
2024-03-17 18:39:53 at async iq (/app/.next/server/chunks/696.js:373:49700)
2024-03-17 18:39:53 at async a (/app/.next/server/app/signin/page.js:1:4483)
and was wondering how I can resolve this. I found this related thread https://github.com/nextauthjs/next-auth/discussions/6030 which suggests to
Check web server logs and tweak the config for proxy-body-size, proxy-buffer-size, fastcgi-buffer-size etc, in the case of Nginx and see if it helps.
Check web server logs and tweak the config for proxy-body-size, proxy-buffer-size, fastcgi-buffer-size etc, in the case of Nginx and see if it helps.
but I don't use nginx and am just running the nextjs app in standalone mode. thanks
GitHub
JWT_SESSION_ERROR in next auth with next.js · nextauthjs next-auth ...
Question 💬 In local development sign in is working fine but the Below error is thrown by next-auth while returning from our custom OAuth provider with production build at dev URL like https://dev-a...
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server