LoginSignup
2
2

More than 5 years have passed since last update.

passportでfacebookにOAuthログインする際にdevice=touchを有効にする(応急処置)

Posted at

以下のような感じでどうぞ。
UA見て切り替えるとかしたい場合にはまた別途考えるのでしょうね。


var fbs = new FacebookStrategy(
    {...},
    function (accessToken, refreshToken, profile, done) {
       //...
    });

fbs.authorizationParams = function(){
    return {display:'touch'};
};

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2