Skip to content

Commit 9aeaa4d

Browse files
committed
throw error, msal cdn reference
1 parent 6bc8a08 commit 9aeaa4d

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

docs/AuthCodeMSALBrowserAuthenticationProvider.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ Steps to use `AuthCodeMSALBrowserAuthenticationProvider`;
1111

1212
1. Using npm: `npm install @azure/msal-browser @microsoft/microsoft-graph-client`
1313

14-
Using html:
15-
16-
```html
17-
<!--Using script tag to include the bundled file or the CDN source-->
18-
<script type="text/javascript" src="https://alcdn.msauth.net/browser/2.15.0/js/msal-browser.min.js"></script>
19-
<script src="graph-js-sdk.js"></script>
20-
<script src="graph-client-msalBrowserAuthProvider.js"></script>
21-
```
14+
Using html:
15+
16+
```html
17+
<!--Using script tag to include the bundled file or the CDN source-->
18+
<script type="text/javascript" src="https://alcdn.msauth.net/browser/2.15.0/js/msal-browser.min.js"></script>
19+
<script src="graph-js-sdk.js"></script>
20+
<script src="graph-client-msalBrowserAuthProvider.js"></script>
21+
```
22+
23+
Reference : [MSAL Browser CDN usage](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/cdn-usage.md)
2224

2325
2. Initialize the `msal-browser` `PublicClientApplication` instance: Learn more [how to initialize msal](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/initialization.md)
2426

src/authentication/msal-browser/AuthCodeMSALBrowserAuthenticationProvider.ts

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ export class AuthCodeMSALBrowserAuthenticationProvider implements Authentication
7070
const response: AuthenticationResult = await this.publicClientApplication.acquireTokenPopup({ scopes });
7171
return response.accessToken;
7272
}
73+
} else {
74+
throw error;
7375
}
7476
}
7577
}

0 commit comments

Comments
 (0)