BrowserAuthError: monitor_window_timeout: Token acquisition in iframe failed due to timeout. #7389
Labels
bug-unconfirmed
A reported bug that needs to be investigated and confirmed
msal-browser
Related to msal-browser package
msal-react
Related to @azure/msal-react
Needs: Author Feedback
Awaiting response from issue author
no-issue-activity
Issue author has not responded in 5 days
public-client
Issues regarding PublicClientApplications
question
Customer is asking for a clarification, use case or information.
Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
3.5.0
Wrapper Library
MSAL React (@azure/msal-react)
Wrapper Library Version
None
Public or Confidential Client?
Public
Description
I am trying to show a popup as soon as the token expires. After the token gets expired we are showing a popup that will have the button to create a new token using acquireTokenSilent method. The token is being created and I am able to login for most of the time. But when the tab is being idle for long time and then when I try to login then facing this error(Error acquiring token: BrowserAuthError: monitor_window_timeout: Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors)
Error Message
main.8f947b7b.js:2 Error acquiring token: BrowserAuthError: monitor_window_timeout: Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors
at v (main.8f947b7b.js:2:2222865)
at main.8f947b7b.js:2:2155230
overrideMethod @ console.js:288
(anonymous) @ main.8f947b7b.js:2
p @ main.8f947b7b.js:2
(anonymous) @ main.8f947b7b.js:2
(anonymous) @ main.8f947b7b.js:2
r @ main.8f947b7b.js:2
l @ main.8f947b7b.js:2
Promise.then
r @ main.8f947b7b.js:2
s @ main.8f947b7b.js:2
(anonymous) @ main.8f947b7b.js:2
(anonymous) @ main.8f947b7b.js:2
k @ main.8f947b7b.js:2
onClick @ main.8f947b7b.js:2
Le @ main.8f947b7b.js:2
Be @ main.8f947b7b.js:2
(anonymous) @ main.8f947b7b.js:2
Fr @ main.8f947b7b.js:2
Gr @ main.8f947b7b.js:2
(anonymous) @ main.8f947b7b.js:2
cu @ main.8f947b7b.js:2
Pe @ main.8f947b7b.js:2
zr @ main.8f947b7b.js:2
Kt @ main.8f947b7b.js:2
Wt @ main.8f947b7b.js:2
MSAL Logs
No response
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
none
Expected Behavior
should be able to create a token without facing error
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
Chrome, Firefox, Edge, Safari
Regression
No response
The text was updated successfully, but these errors were encountered: