K
Kinde4mo ago
Kenny

redirect

Is it possible to support dynamic post-login redirects instead of changing the KINDE_POST_LOGIN_REDIRECT_URL env using something like a query parameter? I'm using sveltekit and a solution where I pass in something like /api/auth/login?postLoginRedirect="xyz" or /api/auth/login?redirect="xyz" would be ideal for this imo.
4 Replies
sszczep
sszczep3mo ago
@Kenny have you tried using post_login_redirect_url=<url>? I just skimmed through the code but should work.
Kenny
Kenny3mo ago
Where exactly would I put that in? As an anchor attribute?
sszczep
sszczep3mo ago
As an url parameter, just like in your original message
onderay
onderay3mo ago
Thanks for helping @sszczep @Kenny did this resolve it for you?