@zkboys/egg-passport-work-wechat
v1.0.2
Published
work wechat passport plugin for egg
Downloads
3
Maintainers
Readme
@zkboys/egg-passport-work-wechat
work wechat passport plugin for egg
Install
$ npm i @zkboys/egg-passport-wechat-work --save
Usage
// config/plugin.js
exports.passportWorkWechat = {
enable: true,
package: '@zkboys/egg-passport-wechat-work',
};
Configuration
// config/config.default.js
exports.passportWorkWechat = {
key: 'your oauth key',
secret: 'your oauth secret',
agentId: 0,
callbackURL: '/passport/wechatwork/callback',
// 从缓存中获取accessToken对象
getAccessToken: (app) => {
},
// 将accessToken对象设置到缓存中
saveAccessToken: (app, accessToken) => {
},
};
see config/config.default.js for more detail.
Questions & Suggestions
Please open an issue here.