From 183cf629ac6384b30e0f1efdfb7a762f55fc833c Mon Sep 17 00:00:00 2001 From: Behnam Mohammadi Date: Tue, 9 Jun 2020 10:19:22 +0430 Subject: [PATCH 1/2] Update README --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cc7ee95f5..fa90705b5 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,8 @@ npm install msal@ ```typescript import { UserAgentApplication } from "msal"; -import { ImplicitMSALAuthenticationProvider } from "./node_modules/@microsoft/microsoft-graph-client/lib/src/ImplicitMSALAuthenticationProvider"; +import { ImplicitMSALAuthenticationProvider } from "@microsoft/microsoft-graph-client/lib/src/ImplicitMSALAuthenticationProvider"; +import { MSALAuthenticationProviderOptions }from '@microsoft/microsoft-graph-client/lib/src/MSALAuthenticationProviderOptions'; // An Optional options for initializing the MSAL @see https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics#configuration-options const msalConfig = { @@ -110,7 +111,7 @@ const graphScopes = ["user.read", "mail.send"]; // An array of graph scopes // Important Note: This library implements loginPopup and acquireTokenPopup flow, remember this while initializing the msal // Initialize the MSAL @see https://github.com/AzureAD/microsoft-authentication-library-for-js#1-instantiate-the-useragentapplication const msalApplication = new UserAgentApplication(msalConfig); -const options = new MicrosoftGraph.MSALAuthenticationProviderOptions(graphScopes); +const options = new MSALAuthenticationProviderOptions(graphScopes); const authProvider = new ImplicitMSALAuthenticationProvider(msalApplication, options); ``` From 4d59843b54140e699b2ed99c65dff09ff544b437 Mon Sep 17 00:00:00 2001 From: Behnam Mohammadi Date: Tue, 9 Jun 2020 10:19:41 +0430 Subject: [PATCH 2/2] Update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fa90705b5..94c25c7a5 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ npm install msal@ import { UserAgentApplication } from "msal"; import { ImplicitMSALAuthenticationProvider } from "@microsoft/microsoft-graph-client/lib/src/ImplicitMSALAuthenticationProvider"; -import { MSALAuthenticationProviderOptions }from '@microsoft/microsoft-graph-client/lib/src/MSALAuthenticationProviderOptions'; +import { MSALAuthenticationProviderOptions } from '@microsoft/microsoft-graph-client/lib/src/MSALAuthenticationProviderOptions'; // An Optional options for initializing the MSAL @see https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics#configuration-options const msalConfig = {