passport local strategy not getting called

前端 未结 14 804
夕颜
夕颜 2020-12-13 04:31

I\'m sure I\'m missing something really obvious here, but I can\'t figure this out. The function I\'ve passed to the LocalStrategy constructor doesn\'t get called when the l

14条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-13 04:59

    1. npm install passport-local

    2. var passport = require('passport') , LocalStrategy = require('passport-local').Strategy;

    According to passportjs.org and it worked for me!

提交回复
热议问题