Skip to content
Advertisement

Tag: msal.js

How to execute code before a Promise is resolved

When using the msal library one can authenticate using the redirect flow. This means the user is navigated to the Microsoft sign in page and after successful authentication he is navigated back to the SPA. The following code handles this: The msal method handleRedirectPromise returns a Promise which we use to set the logged on account once it’s resolved. However,

Advertisement