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

Aryan Takawale 0 Reputation points

I want change redirect url in MSAL config dynamically on envoironment change
if we are the redirect url should be and on the redirect url should be
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