MSAL 3.0 not returning accounts in Angular 17 after upgrading from 2.16.0 #7105
Labels
bug-unconfirmed
A reported bug that needs to be investigated and confirmed
confidential-client
Issues regarding ConfidentialClientApplications
msal-angular
Related to @azure/msal-angular package
msal-browser
Related to msal-browser package
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.0
Wrapper Library
MSAL Angular (@azure/msal-angular)
Wrapper Library Version
None
Public or Confidential Client?
Public, Confidential
Description
I recently upgraded @azure/msal-angular and @azure/msal-browser from version 2.16.0 to 3.0.0 in my Angular 17 project. Since the upgrade, I am unable to retrieve user accounts using this.authService.instance.getAllAccounts(), which now returns an empty array
No errors appear in the console, and the configurations and initializations appear to be unchanged besides the library upgrade. I suspect this might be a lifecycle or configuration issue with MSAL 3.0 in Angular 17. Has anyone encountered a similar problem or knows of any breaking changes in MSAL 3.0 that could affect account retrieval?
Error Message
No response
MSAL Logs
No response
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
Upgrade from Angular 13 to Angular 17 and add above shared in App-component.ts
Expected Behavior
Should get this.authService.instance.getAllAccounts() data
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
Chrome, Firefox, Edge, Safari
Regression
No response
Source
Internal (Microsoft)
The text was updated successfully, but these errors were encountered: