K
Kinde14mo ago
IkiTg07

Prod version callback to localhost

Hello hello. Hope y’all doing great. I deployed my application on Vercel. I don't know why when I connect / register it redirects me to localhost and not the vercel domain. It tries to go to localhost:3000/api/auth/kinde_callback
7 Replies
VKinde
VKinde14mo ago
Hey there! Two places to check: The .env file where you set your call_back urls The call_back url you set in the Kinde portal/admin page. Check to see if both of the above are correctly pointing to your vercel domain ^^^
Oli - Kinde
Oli - Kinde14mo ago
Kinde on Notion
Answer: Adding wildcard callback URLs via the Kinde API
Wildcard support is requested of us fairly frequently and we plan to implement a more long term solution. In the meantime, if your application lives in a GitHub repository connected to Vercel, this topic describes how to add wildcard callback URLs via the Kinde API.
dave_kinde
dave_kinde14mo ago
@IkiTg07 most likely it is your Vercel environment variables that need updating - or it is that you need to redeploy the Vercel app after changing them
IkiTg07
IkiTg07OP14mo ago
Can I show you my variables and my kinds dashboard URL’s ? Because I tried what @dave_kinde said and it didn’t work
dave_kinde
dave_kinde14mo ago
Sure thing, do you want to DM me
IkiTg07
IkiTg07OP14mo ago
Yeah i' doing it
dave_kinde
dave_kinde14mo ago
Just as an update for others, purging Vercel’s cache was the fix here
Want results from more Discord servers?
Add your server