jaredhanson / jaredhanson/passport
LocalStrategy callback does not execute my codes
- Dominant language
- JavaScript
- Stars
- 23.5k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
Hello
I used any example of passport (simple tutorials) exist on internet.
I codes many ways of passport.
But all of my codes in LocalStrategy callback not execute.
node.exe is 0.12.7.0 express 4.11.0 and latest passport.
in this example see:
passport.use(new LocalStrategy(
function (username, password, done) {
console.log(1111);
.....
return done(null, user);
}
));
console.log(1111) not log and continuous codes does not execute.
thanks for reply
Contributor guide
Research direction
Start with the reported passport.use(new LocalStrategy(...)) registration and trace the request path expected to invoke it. Reproduce the example with Node.js 0.12.7.0, Express 4.11.0, and Passport; done means the callback logs 1111 and reaches its existing done call.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- express, javascript, node.js
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100