wechat-component-service
Basic Usage
const ComponentService = ; const service = appid: '<WECHAT_COMPONENT_APPID>' token: '<WECHAT_COMPONENT_TOKEN>' appsecret: '<WECHAT_COMPONENT_APPSECRET>' // optional, default redis options for cache manager & redlock (in fact ioredis) client: host: 'locahost' port: '6379' ; const component = service; // wechat component instanceconst api = service; // wechat-api wrapperconst oauth = service; // wechat-oauth wrapperconst strategy = service; // passport-wechat wrapper