Skip to content

Commit 248945c

Browse files
authored
Correcting missing import, incorrect reference in example (#326)
1 parent 947ec06 commit 248945c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ npm install msal@<version>
9595

9696
```typescript
9797
import { UserAgentApplication } from "msal";
98-
99-
import { ImplicitMSALAuthenticationProvider } from "./node_modules/@microsoft/microsoft-graph-client/lib/src/ImplicitMSALAuthenticationProvider";
98+
import { ImplicitMSALAuthenticationProvider } from "@microsoft/microsoft-graph-client/lib/src/ImplicitMSALAuthenticationProvider";
99+
import { MSALAuthenticationProviderOptions } from '@microsoft/microsoft-graph-client/lib/src/MSALAuthenticationProviderOptions';
100100

101101
// An Optional options for initializing the MSAL @see https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics#configuration-options
102102
const msalConfig = {
@@ -110,7 +110,7 @@ const graphScopes = ["user.read", "mail.send"]; // An array of graph scopes
110110
// Important Note: This library implements loginPopup and acquireTokenPopup flow, remember this while initializing the msal
111111
// Initialize the MSAL @see https://github.com/AzureAD/microsoft-authentication-library-for-js#1-instantiate-the-useragentapplication
112112
const msalApplication = new UserAgentApplication(msalConfig);
113-
const options = new MicrosoftGraph.MSALAuthenticationProviderOptions(graphScopes);
113+
const options = new MSALAuthenticationProviderOptions(graphScopes);
114114
const authProvider = new ImplicitMSALAuthenticationProvider(msalApplication, options);
115115
```
116116

0 commit comments

Comments
 (0)