You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.
5
+
The [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.
6
6
7
7
The `@microsoft/mgt-element` package contains all base classes that enable the providers and components to work together. Use this package to set the global provider, or to create your own providers and/or components that work with Microsoft Graph.
8
8
9
9
[See docs for full documentation](https://aka.ms/mgt-docs)
10
10
11
11
## Set and use the global provider
12
12
13
-
The `@microsoft/mgt-element` package exposes the `Providers` namespace that enables global usage of the authentication providers across your entire app.
13
+
The `@microsoft/mgt-element` package exposes the `Providers` namespace that enables global usage of the authentication providers across your entire app.
14
14
15
15
This example illustrates how to instantiate a new provider (MsalProvider in this case) and use it across your app:
Copy file name to clipboardExpand all lines: packages/mgt/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,12 +51,12 @@ You can use the components by referencing the loader directly (via unpkg), or in
51
51
52
52
> NOTE: This link will load the highest available version of @microsoft/mgt in the range `>= 2.0.0 < 3.0.0`, omitting the `@2` fragment from the url results in loading the latest version. This could result in loading a new major version and breaking the application.
53
53
54
-
You can then start using the components in your html page. Here is a full working example with the Msal provider:
54
+
You can then start using the components in your html page. Here is a full working example with the Msal2 provider:
0 commit comments