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
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 ^^^
Hey @IkiTg07,
The following guide may also help you: https://kinde.notion.site/Answer-Adding-wildcard-callback-URLs-via-the-Kinde-API-84ef0fd0fe1a41969b7a5e51474c1cd5
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.
@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
Can I show you my variables and my kinds dashboard URL’s ?
Because I tried what @dave_kinde said and it didn’t work
Sure thing, do you want to DM me
Yeah i' doing it
Just as an update for others, purging Vercel’s cache was the fix here