...
|
...
|
@@ -127,8 +127,8 @@ passport.use('wechat', new WeixinStrategy({ |
|
|
|
|
|
// sina 登录
|
|
|
passport.use('sina', new SinaStrategy({
|
|
|
clientID: '3739328910',
|
|
|
clientSecret: '9d44cded26d048e23089e5e975c93df1',
|
|
|
clientID: config.thirdLogin.sina.appID,
|
|
|
clientSecret: config.thirdLogin.sina.appSecret,
|
|
|
callbackURL: `${siteUrl}/passport/login/sina/callback`,
|
|
|
requireState: false
|
|
|
}, (accessToken, refreshToken, profile, done) => {
|
...
|
...
|
@@ -137,8 +137,8 @@ passport.use('sina', new SinaStrategy({ |
|
|
|
|
|
// qq 登录
|
|
|
passport.use('qq', new QQStrategy({
|
|
|
clientID: '100229394',
|
|
|
clientSecret: 'c0af9c29e0900813028c2ccb42021792',
|
|
|
clientID: config.thirdLogin.qq.appID,
|
|
|
clientSecret: config.thirdLogin.qq.appSecret,
|
|
|
callbackURL: `${siteUrl}/passport/login/qq/callback`,
|
|
|
requireState: false
|
|
|
}, (accessToken, refreshToken, profile, done) => {
|
...
|
...
|
@@ -147,8 +147,8 @@ passport.use('qq', new QQStrategy({ |
|
|
|
|
|
// alipay 登录
|
|
|
passport.use('alipay', new AlipayStrategy({
|
|
|
partner: '2088701661478015',
|
|
|
key: 'kcxawi9bb07mzh0aq2wcirsf9znusobw',
|
|
|
partner: config.thirdLogin.alipay.partnerID,
|
|
|
key: config.thirdLogin.alipay.appSecret,
|
|
|
return_url: `${siteUrl}/passport/login/alipay/callback`
|
|
|
}, (profile, done) => {
|
|
|
done(null, profile);
|
...
|
...
|
|