Skip to content

Commit a4d34d6

Browse files
authored
Merge pull request #290 from behnammodi/dev
Update README
2 parents 3b95f44 + 4d59843 commit a4d34d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ npm install msal@<version>
9696
```typescript
9797
import { UserAgentApplication } from "msal";
9898

99-
import { ImplicitMSALAuthenticationProvider } from "./node_modules/@microsoft/microsoft-graph-client/lib/src/ImplicitMSALAuthenticationProvider";
99+
import { ImplicitMSALAuthenticationProvider } from "@microsoft/microsoft-graph-client/lib/src/ImplicitMSALAuthenticationProvider";
100+
import { MSALAuthenticationProviderOptions } from '@microsoft/microsoft-graph-client/lib/src/MSALAuthenticationProviderOptions';
100101

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

0 commit comments

Comments
 (0)