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
Copy file name to clipboardExpand all lines: articles/active-directory/develop/quickstart-v2-javascript.md
+12-11Lines changed: 12 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,8 +72,11 @@ In this quickstart, you use a code sample to learn how a JavaScript single-page
72
72
> [!div renderon="docs"]
73
73
> To run the project with a web server by using Node.js, [download the core project files](https://github.com/Azure-Samples/active-directory-javascript-graphapi-v2/archive/quickstart.zip).
@@ -93,8 +96,8 @@ In this quickstart, you use a code sample to learn how a JavaScript single-page
93
96
> storeAuthStateInCookie:true
94
97
> }
95
98
> };
99
+
>```
96
100
97
-
```
98
101
> [!div renderon="portal"]
99
102
> > [!NOTE]
100
103
> > This quickstart supports Enter_the_Supported_Account_Info_Here.
@@ -121,15 +124,13 @@ In this quickstart, you use a code sample to learn how a JavaScript single-page
121
124
122
125
Run the project with a web server by using [Node.js](https://nodejs.org/en/download/):
123
126
124
-
1. To start the server, run the following command from the project directory:
125
-
126
-
```batch
127
-
npm install
128
-
node server.js
129
-
```
130
-
131
-
1. Open a web browser and go to `http://localhost:30662/`.
132
-
1. Select **Sign In** to start the sign-in, and then call Microsoft Graph API.
127
+
1. To start the server, run the following command from the project directory:
128
+
```batch
129
+
npm install
130
+
node server.js
131
+
```
132
+
1. Open a web browser and go to `http://localhost:30662/`.
133
+
1. Select **Sign In** to start the sign-in, and then call Microsoft Graph API.
133
134
134
135
After the browser loads the application, select **Sign In**. The first time that you sign in, you're prompted to provide your consent to allow the application to access your profile and to sign you in. After you're signed in successfully, your user profile information should be displayed on the page.
0 commit comments