Comments (3)
问题2
代码中
passport-wechat/lib/strategy.js
Line 110 in 48e3ea4
第5个参数为何是传入 expires_in 而不是 done 函数?
from passport-wechat.
问题2
代码中
passport-wechat/lib/strategy.js
Line 110 in 48e3ea4
第5个参数为何是传入 expires_in 而不是 done 函数?
你说的 done 函数,在这里就是 verified 函数吧。
在与其他项目整合时, 比如: https://github.com/feathersjs/authentication-oauth2
问题 1
他们使用的是 clientID 和 clientSecret:
app.configure(oauth2({ name: 'facebook', Strategy: FacebookStrategy, clientID: '<your client id>', clientSecret: '<your client secret>', scope: ['public_profile', 'email'] }));
我们项目上用 appID, appSecret
这样命名上不一致在配置时可能出错, 是否可以考虑和他们统一?
这个可以自行 map 一下解决掉吧。
from passport-wechat.
在接入 egg-passport-xxx 时,碰到这种 map 是很常见的。
from passport-wechat.
Related Issues (17)
- 支持loopback框架吗?
- Scope 参数错误或没有Scope 权限 HOT 1
- callbackURL is not in the latest NPM release HOT 2
- Cann't get the 'expired_in' in access_token HOT 1
- npm 上的文档要更新了 HOT 2
- Incomplete dependency list HOT 9
- [问题]多进程运行,getToken和saveToken是必须设置的吗 HOT 2
- 貌似没有支持 passport session? HOT 1
- Update urllib to get rid of native-or-bluebird deprecation
- Is it a false report for error 'passport.initialize() middleware not in use' HOT 7
- req 的对象不存 get 方法
- Unknown authentication strategy "wechat"
- The API property deprecated, Use require("wechat-oauth") instead HOT 2
- 可以根据url支持多appid吗? HOT 3
- passport name HOT 3
- 在回调的时候总是error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from passport-wechat.