-
Notifications
You must be signed in to change notification settings - Fork 2.7k
SilentSSO in v5 swallow errors #8381
Copy link
Copy link
Closed
Labels
bug-unconfirmedA reported bug that needs to be investigated and confirmedA reported bug that needs to be investigated and confirmedmsal-browserRelated to msal-browser packageRelated to msal-browser packagemsal-reactRelated to @azure/msal-reactRelated to @azure/msal-reactpublic-clientIssues regarding PublicClientApplicationsIssues regarding PublicClientApplicationsquestionCustomer is asking for a clarification, use case or information.Customer is asking for a clarification, use case or information.
Metadata
Metadata
Assignees
Labels
bug-unconfirmedA reported bug that needs to be investigated and confirmedA reported bug that needs to be investigated and confirmedmsal-browserRelated to msal-browser packageRelated to msal-browser packagemsal-reactRelated to @azure/msal-reactRelated to @azure/msal-reactpublic-clientIssues regarding PublicClientApplicationsIssues regarding PublicClientApplicationsquestionCustomer is asking for a clarification, use case or information.Customer is asking for a clarification, use case or information.
Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
5.4.0
Wrapper Library
MSAL React (@azure/msal-react)
Wrapper Library Version
5.0.6
Public or Confidential Client?
Public
Description
Using
InteractionType.Silentwith<MsalAuthenticationTemplate>oruseMsalAuthentication()swallows errors.By adding an event callback with
addEventCallback, I can see the instance still emits the error events, but the component and hook never registers it. It's stuck in a limbo state, not showingloadingComponent,errorComponentorchildren.This also seems to specifically happen on localhost.
Error Message
No response
MSAL Logs
No response
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
https://github.com/h3rmanj/msal-silent-reproReproduction Steps
See the reproduction repository README.
Expected Behavior
We get an authenticationResult with the error properly set.
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
Chrome, Firefox, Edge, Safari, Other
Regression
No response