NextJs Redirect URL issue
I updated post_login_redirect_url variable to a new endpoint. However, kinde_callback redirects the user to an old endpoint.
8 Replies
@jiggyboy This could be because the callback URLs in your Kinde application settings have not been updated. Are you able to double check that they match?
Yup I’m using vercel for deployment and the redirect uri passed as params is correct
@Andre @ Kinde
Thanks for letting me know @jiggyboy let me know if this guide helps you? https://youtu.be/ZNuE7CkB6ck?si=nc03Zzh0LWEmntQN
Kinde
YouTube
How to deploy a Kinde Next.js app with Vercel
Software engineer Peter takes you through how to deploy a Kinde app using Vercel, and covers the common pitfalls involved.
00:00 - App demo
0:46 - Creating a project on Vercel
1:19 - Initialising Github repo
2:49 - Setting up environment variables on Vercel
4:00 - Deploying and visiting the app on the Vercel Domain
5:13 - Updating environment ...
Hi @Andre @ Kinde , I am currently stuck here
sharing a few screenshots
setup returning the authenticated users data
but kindesession mentions user authentication as false
i am using next 14.0.2, app router deployed on vercel
where is kindesession from?
Looks like its happening before setup is called
Are you using
useKindeBrowserClient
here?Heyy thanks for the reply - I realized that creating an api and calling the kinde server session wasn’t working. Soon as I consumed the functions in my app instead, it started working.
Thanks! I think it was some issue in my code
Thanks again 🙏