MSAL library always uses accounts[0]. How to get the account which was selected in account picker?

Viewed 32

I am currently using Msal react library for Azure authentication.I am currently in the situation of 2 accounts signed in but my code picks up the first one in accounts array which is accounts[0]. enter image description here

How to get the account selected here?

0 Answers
Related