Silent SSO inside iframe getting BrowserAuthError: timed_out

Ajit Kumar Singh 1 Reputation point
2026-04-17T19:59:19.75+00:00

I have a parent application running on localhost:3000 which is using the entra id authentication. Inside the parent application I have embedded child application running on localhost:4000. Both the application are Next JS apps. After authentication from the parent application, I am pulling the email of the user from the session and passing it to the child as a Iframe query parameter.
My child app is registered as Single page application and configured with redirect uri as http://localhost:4000/blank.html.
When my parent app is authenticated and loads the child app passing the email as login it, I have my IframAuth.tsx inside me child which pulls the login hint value and call the ssoSilent({scopes: ["user.read"],loginHint: emaild}). In the network tab I see 200 status code call to the https://login.microsoftonline.com endpoint which calls the blank.html redirect uri. Inside blank.html I see the #code=1.AQcAp.. response as well but after sometime I see the msal throws BrowserAuthError: timed_out error. Please help me with this.

Microsoft Security | Microsoft Entra | Microsoft Entra ID

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.