...
|
...
|
@@ -14,11 +14,11 @@ const config = require('../../config/common'); |
|
|
* wechat登录
|
|
|
*/
|
|
|
passport.use(new WeixinStrategy({
|
|
|
clientID: config.wechat.appID,
|
|
|
clientSecret: config.wechat.appSecret,
|
|
|
clientID: config.thirdLogin.wechat.appID,
|
|
|
clientSecret: config.thirdLogin.wechat.appSecret,
|
|
|
callbackURL: `${config.siteUrl}/passport/login/wechat/callback`,
|
|
|
requireState: false,
|
|
|
scope: 'snsapi_userinfo'
|
|
|
}, (accessToken, refreshToken, profile, done) => {
|
|
|
done(null, profile);
|
|
|
})); |
|
|
\ No newline at end of file |
|
|
})); |
...
|
...
|
|