Next Auth problem in Vercel
I'm currently deploying my app in Vercel but it won't work because of the following error:
This is the block of code in
middleware.ts
that the stack trace refers to:
Googling it looks like NEXTAUTH_SECRET
is not set up in Vercel, but it is (as the image shows).
Tips?7 Replies
whats the type signature of decode?
i guess just pass the secret in as a buffer
are you use you have set the env var?
I tried hardcoding it and it still won't work. Trying the Buffer now.
HOLY FUCK IT WORKED
I was getting desperate by now.
This solved the issue:
lmfao
also
use
https://github.com/t3-oss/t3-env