...
|
...
|
@@ -14,6 +14,8 @@ const config = require('../../config/common'); |
|
|
* wechat登录
|
|
|
*/
|
|
|
passport.use(new WeixinStrategy({
|
|
|
authorizationURL: 'https://open.weixin.qq.com/connect/oauth2/authorize',
|
|
|
tokenURL: 'https://api.weixin.qq.com/sns/oauth2/access_token',
|
|
|
clientID: config.thirdLogin.wechat.appID,
|
|
|
clientSecret: config.thirdLogin.wechat.appSecret,
|
|
|
callbackURL: `${config.siteUrl}/passport/login/wechat/callback`,
|
...
|
...
|
|