KindeK
Kinde13mo ago
top kek

How to get `post_login_redirect_url` to work

I’d like to redirect my user back where they were after they log in. For that i found the (undocumented) property post_login_redirect_url which is only mentioned in the Nextjs SDK docs.

Unfortunately it did not add the search param to the kinde login URL 😦

Then we’ve got the other thing: how to get that URL back in my /callback endpoint?
I call this await kindeClient.handleRedirectToApp(manager, url) but what about then?
CleanShot_2024-12-04_at_16.16.582x.png
Was this page helpful?