microsoftgraph / microsoft-graph-toolkit

Authentication Providers and UI components for Microsoft Graph 🦒
https://docs.microsoft.com/graph/toolkit/overview
Other
944 stars 303 forks source link

[BUG] Providers.globalProvider.getAllAccounts() returns an empty array even after the provider state is signed in #1670

Closed ARsquare closed 1 year ago

ARsquare commented 2 years ago

Describe the bug Providers.globalProvider.getAllAccounts() returns an empty array even after the provider state is signed in. It sometimes gives an array containing the account of the logged in user. But very often gives an empty array.

To Reproduce Steps to reproduce the behavior: Use Msal2Provider/ TeamsMsal2Provider to log in the user. Once the provider state changes to signed in, call Providers.globalProvider.getAllAccounts() to get the account details.

Expected behavior It should return an array containing the account details of the logged in user.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

ghost commented 2 years ago

Hello ARsquare, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

gavinbarron commented 1 year ago

Hi @ARsquare is this still an issue for you and are you using the TeamxFX provider?

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.