How can we set dynamic redirect Url based on envoironment url change

Aryan Takawale 0 Reputation points
2023-05-19T14:22:48.8866667+00:00

I want change redirect url in MSAL config dynamically on envoironment change
if we are qa.mysite.com the redirect url should be qa.mysite.com and on prod.mysite.com the redirect url should be prod.mysite.com
How can i achieve that ?
i tried using window.location.origin as redirect url but that is not working

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
6,066 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes