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: tutorial/02-create-app.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,9 @@ Before moving on, install some additional packages that you will use later:
44
44
- [moment](https://github.com/moment/moment/) for formatting date/time values.
45
45
- [connect-flash](https://github.com/jaredhanson/connect-flash) to flash error messages in the app.
46
46
- [express-session](https://github.com/expressjs/session) to store values in an in-memory server-side session.
47
+
- [express-promise-router](https://github.com/express-promise-router/express-promise-router) to allow route handlers to return a Promise.
47
48
- [msal-node](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-node) for authenticating and getting access tokens.
49
+
- [uuid](https://github.com/uuidjs/uuid) used by msal-node to generate GUIDs.
48
50
- [microsoft-graph-client](https://github.com/microsoftgraph/msgraph-sdk-javascript) for making calls to Microsoft Graph.
49
51
- [isomorphic-fetch](https://github.com/matthew-andrews/isomorphic-fetch) to polyfill the fetch for Node. A fetch polyfill is required for the `microsoft-graph-client` library. See the [Microsoft Graph JavaScript client library wiki](https://github.com/microsoftgraph/msgraph-sdk-javascript/wiki/Migration-from-1.x.x-to-2.x.x#polyfill-only-when-required) for more information.
50
52
@@ -71,8 +73,9 @@ Before moving on, install some additional packages that you will use later:
71
73
1. Update the application to use the `connect-flash` and `express-session` middleware. Open the `./app.js` file and add the following `require` statement to the top of the file.
72
74
73
75
```javascript
74
-
var session = require('express-session');
75
-
var flash = require('connect-flash');
76
+
const session = require('express-session');
77
+
const flash = require('connect-flash');
78
+
const msal = require('@azure/msal-node');
76
79
```
77
80
78
81
1. Add the following code immediately after the `var app = express();` line.
0 commit comments