Skip to content

Commit f66db69

Browse files
authored
Update README.md
1 parent 5d1a637 commit f66db69

File tree

1 file changed

+2
-1
lines changed
  • packages/providers/mgt-electron-provider

1 file changed

+2
-1
lines changed

packages/providers/mgt-electron-provider/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The `@microsoft/mgt-electron-provider` package exposes the `ElectronAuthenticato
3131
width: 800,
3232
height: 800,
3333
webPreferences: {
34-
nodeIntegration: true
34+
nodeIntegration: true //Make sure this is true
3535
}
3636
});
3737
let config: MsalElectronConfig = {
@@ -44,6 +44,7 @@ The `@microsoft/mgt-electron-provider` package exposes the `ElectronAuthenticato
4444
};
4545
ElectronAuthenticator.initialize(config);
4646
```
47+
Note : Make sure `nodeIntegration` is set to `true` under `webPreferences` while creating a new BrowserWindow instance.
4748
4849
See [provider usage documentation](https://docs.microsoft.com/graph/toolkit/providers) to learn about how to use the providers with the mgt components, to sign in/sign out, get access tokens, call Microsoft Graph, and more. See [Electron provider documentation](https://docs.microsoft.com/graph/toolkit/providers/electron).
4950

0 commit comments

Comments
 (0)