Next Auth Discord Callback error...

I really can't see what i/m doing wrong here. I've added `https://hciav.vercel.app/ to my NEXTAUTH_URL and NEXTAUTH_SECRET as a hashed string to my vercel environment variables. but i'm having no luck with this. the localhost:3000 implementation works fine Can anyone help?
18 Replies
Son
Son2y ago
https://hciav.vercel.app/api/auth/signin?error=Callback
Son
Son2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Son
Son2y ago
Yes
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Son
Son2y ago
I take a look at that No errors in my log, i don’t see log about environment variables being injected though?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
dan
dan2y ago
most likely the next auth secret is not set.
Son
Son2y ago
the next auth secret is just a random string we generate right?
dan
dan2y ago
yep it’s weird how there is no logs.
Son
Son2y ago
in the build logs it says nothing about loading in environment labels, is that standard?
dan
dan2y ago
I don’t think it mentions it
Son
Son2y ago
yeah, it doesn't, wow I'm literally completely blocked. if my local host implementation works, what else could it really be? Have you had any success?
Son
Son2y ago
my app setup
Son
Son2y ago
found the issue, its to do with my database, i get this error on planet scale... @dan.
Son
Son2y ago
fixed the issue, you have to connect to your production DB locally and push the scheme to it.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
basedgoat
basedgoat6mo ago
ohhh