Purpose of the msal-react account selection code #4246
Unanswered
peksipatongeis
asked this question in
Help
Replies: 1 comment 2 replies
-
Active account is not set automatically by the library. Account selection can be dependent on your specific scenario and MSAL does not make any assumptions about which user you intend to acquire tokens for. Setting the "active account" is a way for you to tell MSAL that this is the default account it should use for token requests if a different account is not provided on the request. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On the msal-react samples I've noticed this piece of code:
microsoft-authentication-library-for-js/samples/msal-react-samples/typescript-sample/src/index.tsx
Lines 14 to 18 in e983e25
I'm wondering what's the purpose of it, I thought active account is always set for logged in users?
Beta Was this translation helpful? Give feedback.
All reactions