Closed EirikAan closed 1 year ago
This issue requires attention from the MSAL.js team and has not seen activity in 5 days. @hectormmg please follow up.
This issue requires attention from the MSAL.js team and has not seen activity in 5 days. @hectormmg please follow up.
This issue requires attention from the MSAL.js team and has not seen activity in 5 days. @hectormmg please follow up.
This issue requires attention from the MSAL.js team and has not seen activity in 5 days. @hectormmg please follow up.
This issue requires attention from the MSAL.js team and has not seen activity in 5 days. @hectormmg please follow up.
There are no known issues related to getting accounts in v2 or in v3. If nothing has changed in your code perhaps something changed in your access to local/sessionStorage. That's where I'd start, try debugging to see if the accounts are able to be stored in localstorage and then whether they can be retrieved.
Unfortunately this isn't super actionable for us so I'm closing but feel free to let us know if you have any further questions.
Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
2.28.1
Wrapper Library
Not Applicable
Wrapper Library Version
None
Public or Confidential Client?
Public
Description
recently the authentication flow for my outlook addin started acting weird. This has worked perfectly fine for months up until last week when suddenly i stopped working for me.
Currently the login process goes smooth and i sucessfully log in using msal and a dialog window popup in my addin.
However when i try to fetch my account from the MSAL storage it just returns null. trying to use getAllAccounts simply returns an empty array.
the weird part is that the error occurs in both local development and in production, even tough no code has been pushed since the last time it worked. The even weirder part is that the error only occurs on my pc. And i havent done anything to prompt this. I tested the solution on wednesday last week, and it worked fine. And when i booted the same stuff up on thursday it didnt work.
Any ideas what can cause this? I tried running this sample on my pc https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/react-router-sample and that worked fine. I tried running the diffrent methods to fetch accounts and they all returned something. Is this an issue with v2? Would upgrading to v3 help?
MSAL Configuration
Relevant Code Snippets
Identity Provider
Azure AD / MSA
Source
External (Customer)