Set up Passport

Does anyone no how to set this up, the instructions say the dependences or express are already included.
https://www.passportjs.org/packages/
https://www.freecodecamp.org/learn/quality-assurance/advanced-node-and-express/set-up-passport

The required packages have already been installed into the sample project.

passport@~0.4.1 and express-session@~1.17.1 are already installed, and are both listed as dependencies in your package.json file.

As for setting it up, you download the express-session and the passport packages with npm.

Then you properly set up the middleware needed for passport. There are instructions on the challenge and the npm package description if further help is needed.

Ok, that makes sense, can you do this with codepen?

Nope. You can’t do it in Codepen. Codepen is best meant for CSS, HTML, and Javascript. You can complete this project locally using the boilerplate or use a Gitpod account.

Depending on how experienced you are, doing things locally seems like the better option.

1 Like