File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
articles/active-directory/develop Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ The web app sample in this tutorial uses the [express-session](https://www.npmjs
100
100
101
101
## Add app registration details
102
102
103
- 1 . Create an * .env* file in the root of your project folder. Then add the following code:
103
+ 1 . Create a * .env* file in the root of your project folder. Then add the following code:
104
104
105
105
:::code language="text" source="~ /ms-identity-node/App/.env":::
106
106
@@ -130,6 +130,8 @@ Fill in these details with the values you obtain from Azure app registration por
130
130
131
131
## Add code for user login and token acquisition
132
132
133
+ 1 . Create a new file named * auth.js* under the * router* folder and add the following code there:
134
+
133
135
:::code language="js" source="~ /ms-identity-node/App/routes/auth.js":::
134
136
135
137
2 . Next, update the * index.js* route by replacing the existing code with the following:
@@ -142,7 +144,7 @@ Fill in these details with the values you obtain from Azure app registration por
142
144
143
145
## Add code for calling the Microsoft Graph API
144
146
145
- Create a file named ** fetch.js* * in the root of your project and add the following code:
147
+ Create a file named * fetch.js* in the root of your project and add the following code:
146
148
147
149
:::code language="js" source="~ /ms-identity-node/App/fetch.js":::
148
150
You can’t perform that action at this time.
0 commit comments