Hello!
I am working on a web application written in Typescript with separate client and server components. I am hosting deployed versions of this app in Azure and have configured Stych to support Email Magic Links and Microsoft OAuth. We are currently using the pre-built Stytch UI for our client.
There are no issues in the normal operating environment where the deployed client is communicating with the deployed server, nor when both are running locally. However, I’d like for my devs to be able to work on the client locally while using the deployed server. For that reason, I am specifying the login redirect URL for the magic link requests and have added both the local and the Azure URLS in the Stytch Dashboard.
The issue arises when trying to use Microsoft OAuth from the local client when communicating with the server running in Azure. My understanding is that process is supposed to determine which redirect URL to use based on where the request originates from, but it seems to always be sending me to the deployed instance, which is the default URL. If I set the localhost URL as default, then it works locally but now the deployed client tries to send me to localhost.
Is there some way for me to tell this OAuth process which redirect URL to use? Please let me know if you need any further info.
Thanks!