Skip to content

Commit 0f6d0be

Browse files
salman90derisen
andauthored
Update articles/active-directory/develop/msal-error-handling-js.md
Co-authored-by: Doğan Erişen <[email protected]>
1 parent 9a516e4 commit 0f6d0be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/active-directory/develop/msal-error-handling-js.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ The following error types are available:
5757
For error handling in authentication flows with redirect methods (`loginRedirect`, `acquireTokenRedirect`), you'll need to handle the promise, which is called with success or failure after the redirect using `handleRedirectPromise()` method as follows:
5858

5959
```javascript
60-
var myMSALObj = new Msal.PublicClientApplication(msalConfig);
60+
const msal = require('@azure/msal-browser');
61+
const myMSALObj = new msal.PublicClientApplication(msalConfig);
6162

6263
// Register Callbacks for redirect flow
6364
myMSALObj.handleRedirectPromise()

0 commit comments

Comments
 (0)