caleb
caleb
TTCTheo's Typesafe Cult
Created by caleb on 1/6/2025 in #questions
Jose DataError: HMAC key data must not be empty
Hey y'all. Working on adding my own auth flow to my Next/T3 app using a magic link/email. The link takes you to /api/sign/<your auth token> where Jose signs a JWT and I attach it to a cookie. It had been working fine before, but suddenly it's throwing a DataError: HMAC key data must not be empty error. I did some Googling, came across only one instance where someone had this issue on GitHub (https://github.com/panva/jose/issues/698) but wasn't helping at all. Using the following package versions: - next 14.2.1 - jose 5.9.6
7 replies