Replies: 1 comment 3 replies
-
Hi, the repro/issue description and the video don't seem to match up. I'm unable to reproduce the issue. If configured correctly, See: https://next-auth-example.vercel.app From the looks of it, you might be missing the secret environment variable in production. Edit: This doesn't seem like a Next.js bug, so transferring to discussions. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Link to the code that reproduces this issue
https://github.com/neu5/nextjs-form
To Reproduce
It works locally so to really reproduce it you need to deploy it on production
Current vs. Expected behavior
It should work on production the same way it works locally
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.6.0: Fri Sep 15 13:41:30 PDT 2023; root:xnu-8796.141.3.700.8~1/RELEASE_ARM64_T8103 Binaries: Node: 18.17.1 npm: 9.6.7 Yarn: 1.22.19 pnpm: N/A Relevant Packages: next: 14.1.4 eslint-config-next: 14.0.0 react: 18.2.0 react-dom: 18.2.0 typescript: 5.2.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Middleware / Edge (API routes, runtime)
Which stage(s) are affected? (Select all that apply)
Vercel (Deployed)
Additional context
I was implementing the JWT based on this video
https://www.youtube.com/watch?v=DJvM2lSPn6w
Trying tu use
SignJWT
fromjose
package on production results in 500 HTTP error on Vercel hosting500: INTERNAL_SERVER_ERROR
Code: EDGE_FUNCTION_INVOCATION_FAILED
ID: arn1::s7gbf-1711160443550-1c66d8f156d1
And the logs says
Error: Imported HMAC key length (0) must be a non-zero value up to 7 bits less than, and no greater than, the bit length of the raw key data (0).
Beta Was this translation helpful? Give feedback.
All reactions