ianpaschalI
Convex Community11mo ago
5 replies
ianpaschal

Sign in & sign up work on cloud dev, error on production

Hello all,
I've deployed my app via Vercel, and followed the set-up guy carefully using differerent env vars for dev and prod. I'm using Convex Auth.

My sign up and sign in flow seems to work perfectly when running on cloud dev. But on production, I'm getting the following errors:

When signing up:
Uncaught Error: Missing environment variable JWT_PRIVATE_KEY at requireEnv (../../node_modules/@convex-dev/auth/src/server/utils.ts:4:2)

However the authAccount and user records are created successfully.

So I tried signing in:
Uncaught Error: InvalidSecret at retrieveAccount (../../node_modules/@convex-dev/auth/src/server/implementation/index.ts:601:2)

Any idea what these mean?
Was this page helpful?