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
> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
28
-
> If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
25
+
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
41
38
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
42
-
43
39
#### nodejs - Authentication, client creation, and get accounts as an example written in JavaScript.
44
40
45
41
##### Sample code
@@ -55,24 +51,20 @@ const creds = new DefaultAzureCredential();
#### browser - Authentication, client creation, and get accounts as an example written in JavaScript.
71
64
72
65
In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
73
-
74
-
- See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
75
-
- Note down the client Id from the previous step and use it in the browser sample below.
66
+
- See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
67
+
- Note down the client Id from the previous step and use it in the browser sample below.
76
68
77
69
##### Sample code
78
70
@@ -90,26 +82,21 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
90
82
constsubscriptionId="<Subscription_Id>";
91
83
// Create credentials using the `@azure/identity` package.
92
84
// Please note that you can also use credentials from the `@azure/ms-rest-browserauth` package instead.
0 commit comments