Server-determined dynamic callbackURL (or redirect)
Hey is it possible to redirect to a specific subdomain after successfully authed with magic link?
I have a multi-tenant app, each running on its own subdomain. On the auth page it cannot be determined which app url should be redirected to (this is determined on the server, set in the customSession).
Currently the callbackURL leads back to the auth and then it redirects to the appropriate client, but I would like to save that one extra redirect.
I have a multi-tenant app, each running on its own subdomain. On the auth page it cannot be determined which app url should be redirected to (this is determined on the server, set in the customSession).
Currently the callbackURL leads back to the auth and then it redirects to the appropriate client, but I would like to save that one extra redirect.