caleb
TTCTheo's Typesafe Cult
•Created by caleb on 1/6/2025 in #questions
Jose DataError: HMAC key data must not be empty
I made sure
jwt
and secret
are both set. I even logged it to make sure7 replies
TTCTheo's Typesafe Cult
•Created by caleb on 1/6/2025 in #questions
Jose DataError: HMAC key data must not be empty
I verified that
jwt
and secret
in the providers code are not null or blank, which is what it looks like the error I'm getting would be caused by. I also confirmed they're the exact same from when the JWT is being signed.7 replies
TTCTheo's Typesafe Cult
•Created by caleb on 1/6/2025 in #questions
Jose DataError: HMAC key data must not be empty
I was using middleware to parse and validate the auth cookie but needed to use Prisma. I had issues adding Prisma to edge runtime so I instead moved it over to my
providers.tsx
file.
Discord isn't letting me post the code for some reason so here's a Hastebin link with the providers code: https://hastebin.com/share/enomewaken.javascript7 replies
TTCTheo's Typesafe Cult
•Created by caleb on 1/6/2025 in #questions
Jose DataError: HMAC key data must not be empty
Here's the
/src/app/api/sign/route.ts
file:
7 replies