msalInstance.getAllAccounts() empty array when using loadExternalTokens() & acquireTokenSilent() #7369
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: Attention 👋
Awaiting response from the MSAL.js team
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.24.0
Wrapper Library
MSAL React (@azure/msal-react)
Wrapper Library Version
2.1.0
Public or Confidential Client?
Public
Description
Hi. I have an MSAL account object ( typescript interface is AccountInfo ), with details decoded from the access token that i received after login.
What i'm trying to achieve
Inform MSAL about that account.
What i've used
loadExternalTokens()
,acquireTokenSilent()
,setActiveAccount()
Actual Result
msalInstance.getAllAccounts()
returns empty arraymsalInstance.logoutRedirect()
it redirects but there is no account to logout.Expected Result
msalInstance.getAllAccounts()
returns array with the added accountmsalInstance.logoutRedirect()
it redirects but there should be an account to logout.My Code
Thanks! :)
Error Message
No response
MSAL Logs
No response
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
msalInstance.acquireTokenSilent
with the created objects.msalInstance.setActiveAccount
with the create account object.msalInstance.getAllAccounts
, it is empty.Expected Behavior
msalInstance.getAllAccounts()
should return array with the added accountmsalInstance.logoutRedirect()
it redirects but there should be an account to logout.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: