I'm getting BrowserAuthError: monitor_window_timeout: Token acquisition in iframe failed due to timeout
. I think it is happening as a result of calling ssoSilent
but, I have no idea why is it happening.
I have read through the documents and the most common case is being redirect away from redirectUri. I don't think that is my issue though since I am using a completely blank html page as my redirect destination when calling a silent api on MSAL.
- My app is made with Vue 3
- I have a blank page for redirectUri of silent calls
- I have a vue component as redirectUri of other calls and that component calls
handleRedirectPromise
- all urls are added in Entra Id
- everything else woks fine
const result = await this.instance.ssoSilent({
loginHint: userEmail,
scopes: this.authConfig.scopes,
redirectUri: this.authConfig.silentRedirectUri,
})
this.instance.setActiveAccount(result.account)
} catch (error) {
if (error instanceof InteractionRequiredAuthError) {
await this.loginRedirect(userEmail)
return
}
throw error
}
I expect that the hidden iframe not to timeout and handles the redirect response correctly
acquireTokenPopup
as a fallback for mobile browsers.tenant ID
.