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 Security | Intune | Configuration Manager | Other
Microsoft Security | Microsoft Authenticator
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.