KindeK
Kinde2y ago
9 replies
Joshkop

Use callbacks_url with and without intl18 subdomains

Hello,

Im using nextintls subdomain routing for in18

But if users try to login from a in18 subdomain like "de.domain.com" instead of "domain.com" I get the sate flow not expected error

Since its the same nextjs app for all subdomains, I cant add the callback url dynamicly on build time


Is the only way now using wildcards?

If so do I just need to set these envs:

KINDE_POST_LOGIN_REDIRECT_URL=https://*.domain.com
KINDE_POST_LOGOUT_REDIRECT_URL=https://*.domain.com

or do i also set KINDE_SITE_URL to the wildcard ?

What happens then to the normal domain at "domain.com"

Since it is not a subdomain does that even work still?
Was this page helpful?