From b172098c08c13fea866e1a3b03e8a626dbd0a8a2 Mon Sep 17 00:00:00 2001 From: Xiaodan Mao Date: Sat, 7 May 2022 05:17:46 +0800 Subject: [PATCH] doc: add missing import (#781) Add a missing import to initialize the graph client when using npm --- docs/AuthCodeMSALBrowserAuthenticationProvider.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/AuthCodeMSALBrowserAuthenticationProvider.md b/docs/AuthCodeMSALBrowserAuthenticationProvider.md index f130371a0..fee11ca18 100644 --- a/docs/AuthCodeMSALBrowserAuthenticationProvider.md +++ b/docs/AuthCodeMSALBrowserAuthenticationProvider.md @@ -32,6 +32,7 @@ Using npm: import { PublicClientApplication, InteractionType, AccountInfo } from "@azure/msal-browser"; import { AuthCodeMSALBrowserAuthenticationProvider, AuthCodeMSALBrowserAuthenticationProviderOptions } from "@microsoft/microsoft-graph-client/authProviders/authCodeMsalBrowser"; + import { Client } from "@microsoft/microsoft-graph-client"; const options:AuthCodeMSALBrowserAuthenticationProviderOptions: { account: account, // the AccountInfo instance to acquire the token for.