My application's authentication flow

"Hello Vercel Support Team,

My application’s authentication flow, which starts from https://www.whogotwho.com/, is encountering an unexpected redirect. After the Kinde authentication callback, the browser is redirected from https://www.whogotwho.com/ to https://marshal-ui-yt.vercel.app/, which then results in a 404 Not Found error.

I have thoroughly checked and verified all my Vercel and Kinde configurations:

  • My Vercel environment variables (e.g., KINDE_SITE_URL, KINDE_POST_LOGIN_REDIRECT_URL) are correctly set to https://www.whogotwho.com/.
  • My custom domain www.whogotwho.com is “Configured Correctly” and linked to Production in my Vercel project’s “Domains” tab.
  • My Kinde dashboard’s “Allowed callback URLs” correctly lists https://www.whogotwho.com/api/auth/kinde_callback.
  • I have confirmed that there are no explicit redirect rules configured in my Vercel project’s dashboard settings, nor do I have a vercel.json file in my project’s root directory.

Despite these correct configurations, the browser’s network log clearly shows a 307 redirect occurring from https://www.whogotwho.com/ (specifically after the kinde_callback to /creation) to https://marshal-ui-yt.vercel.app/.

My Vercel Project ID is pr_J73on05saZgi00f641RMuiPTJ3.

Could you please investigate this unexpected internal routing or redirect that is causing my domain www.whogotwho.com to send traffic to marshal-ui-yt.vercel.app/ during the authentication process?

Thank you."

There’s another community post with 404 debugging tips that might be helpful. Please give these solutions a try and let us know how it goes.

A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0.

Hi, it looks like you’re returning the redirect from your route handler