Get request object in Passport strategy callback

前端 未结 3 1062
别跟我提以往
别跟我提以往 2020-12-09 01:09

So here is my configuration for passport-facebook strategy:

    passport.use(new FacebookStrategy({
        clientID: \".....\",
        clientSecret: \"....         


        
3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-09 01:54

    There's a passReqToCallback option, see the bottom of this page for details: http://passportjs.org/guide/authorize/

提交回复
热议问题