Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

migrated to msal.js v2 #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

migrated to msal.js v2 #119

wants to merge 1 commit into from

Conversation

scale-tone
Copy link
Owner

No description provided.


console.log(`Failed to handle login redirect. name: ${authErr.name}, message: ${authErr.message}, errorCode: ${authErr.errorCode}, errorMessage: ${authErr.errorMessage}, accountState: ${accountState}`);
this._aadApp.handleRedirectPromise().catch(err => {
Copy link
Owner Author

@scale-tone scale-tone Sep 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discovered, the promise returned by .handleRedirectPromise() actually needs to be handled. Immediately upon redirect from AAD this._aadApp.getAllAccounts() would still be empty and will only get populated in that promise handler

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant