Answers for "passport local strategy async function"

0

passport local strategy async function

function __promisifiedPassportAuthentication() {
    return new Promise((resolve, reject) => {
        passport.authenticate('local', (err, user, info) => {
            ...
        })(req, res) // <-- that guy right there
    }
}
Posted by: Guest on April-05-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language