I am effectively trying to do SSO across subdomains. It is generally working well, but I have a question. I’ll use “example.com” in my question.
Authentication is always on the subdomain auth.example.com, but sign out can happen from any subdomain.
Suppose the user is using app.example.com. When the user is signed out, they are redirected a “signedOut” route, which shows a [sign in] button, so
https://app.example.com/signedOut.
User clicks on the [sign in] button on that page and gets redirected to auth.example.com for the sign in flow.
I want to be able to redirect the user back from auth.example.com to where they started, i.e.
https://app.example.com.
I tried using the redirectToPath query param, but as the param pretty clearly states, it only works for paths.
Is there a query param for urls? Or do I have to override an init config function? Or is there something else?