passport
passport copied to clipboard
promise was created in a handler... but was not returned from it
Environment
$ node --version v7.5.0
Passport version: 0.3.2 Passport-strategy: 1.0.0 Bluebird: 3.5.0
I'm seeing this warning every time I try and authenticate using passport:
(node:1072) Warning: a promise was created in a handler at ...node_modules/passport/lib/authenticator.js:339:7 but was not returned from it, see http://goo.gl/rRqMUw
at Function.Promise.attempt.Promise.try (...node_modules/bluebird/js/release/method.js:29:9)
Is this expected? Is something I'm using incompatible with something else?
Same here. This should be fixed.
I am getting this warning in this context:
passport.use(new LocalStrategy(
{
usernameField: 'email',
passwordField: 'password'
},
function (username, password, done) {
// Search for the user
knex('users').first()
.where({ 'email': username })
.then(user => {
// If no user is found
if (!user) {
console.log(`[Authentication] User not found: ${username}`)
return done(null, false, { message: 'Incorrect credentials' }) <--- Warning happens here
}
....
})
))
Is this going to fixed sometime soon?
Seems like this project is a zombie, so I'll close this.
Is passport not being maintained anymore?
I have the same issue, does anyone find a solution yet?
I am getting this warning specifically for a http delete request