SSO Login Error - BrowserAuthError: monitor_window_timeout: Token acquisition in iframe failed due to timeout
11:18 08 Dec 2025

I am using .NET and getting the above error. Till yesterday everything was working and all of sudden getting this error today ?

Not sure what is changed?

Also, issue is only with edge browser and FF is working fine.

below is my function -

function handleResponse(resp) {
    const isInIframe = window.parent !== window;
    if (!isInIframe) {
        if (resp !== null) {
            accountId = resp.account.homeAccountId;
            showWelcomeMessage(resp.account);
            getTokenRedirect(loginRequest, resp.account);
            console.log(resp.account);
            
        } else {
            myMSALObj.ssoSilent(silentRequest).then(() => {
                const currentAccounts = myMSALObj.getAllAccounts();
                accountId = currentAccounts[0].homeAccountId;
        showWelcomeMessage(currentAccounts[0]);
                getTokenRedirect(loginRequest, currentAccounts[0]);
                
            }).catch(error => {
                console.error("Silent Error: " + error);
                if (error instanceof msal.InteractionRequiredAuthError) {
                    signIn("loginRedirect");
                }
                if (error instanceof msal.BrowserAuthError) {
                }
            });
        }
    }
}
asp.net single-sign-on microsoft-edge