How to Use Passport Strategies & Create New Middleware
See original GitHub issue-
code does not work for mongodb package 3.X needs 2.X or will get db.collection is not a function. hence this dependency needs to be more strictly enforced error…
-
test no.2 does not pass even though i am pretty certain code redirects to ‘/’
Challenge Name
https://beta.freecodecamp.org/en/challenges/advanced-node-and-express/create-new-middleware https://beta.freecodecamp.org/en/challenges/advanced-node-and-express/how-to-use-passport-strategies
Issue Description
Browser Information
- Browser Name, Version:
- Operating System:
- Mobile, Desktop, or Tablet:
Your Code
Screenshot
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:19 (10 by maintainers)
Top Results From Across the Web
Documentation: Middleware
Passport is used as middleware within a web application to authenticate requests. Middleware was popularized in Node.js by Express and its even more...
Read more >07 - How to Use Passport Strategies - freeCodeCamp - YouTube
To link login forms to our strategies, we can mount a middleware called passport.authenticate() to our POST route.
Read more >Node JS with Passport Authentication simplified
Step 1: Import the libraries into your file · Step 2: Initialize Middleware · Step 3: Use Passport to define the Authentication Strategy...
Read more >Authenticate Users With Node ExpressJS and Passport.js
In this tutorial we'll: Create a login form for a Node application using Passport; Use the session authentication strategy with Passport; Connect Passport...
Read more >The Ultimate Guide to Passport JS
In this post, I am going to walk through why the Passport-JWT authentication strategy is a simple, secure solution for small teams and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Still broken for me. I just put “Home Page” in the index.pug description. Either add that to the challenge or just fix the glitch/github clone?
Create new middleware works, allowing the new domain
@clickingmouse be aware that the redirection is tested searching for the text ‘Home page’ so you have to put it somewhere in the ‘/’ page. Probably the test or the description could be improved.
check this: https://glitch.com/edit/#!/oasis-thief