egg-passport-weapp
Wechat miniprogram passport plugin for egg.
Example
Open https://uniheart.herokuapp.com/ to see the result.
Install
$ npm i egg-passport-weapp --save
Usage
// {app_root}/config/plugin.[t|j]sexportspassportWeapp = enable: true package: "egg-passport-weapp";
Configuration
// {app_root}/config/config.default.[t|j]sexportspassportWeapp = key: "your oauth key" secret: "your oauth secret"; // {app_root}/app/router.js apppassport;router;
see config/config.default.ts for more detail.
Example
Wechat Mini Program | Wechat Mini Program Demo version |
---|---|
Questions & Suggestions
Please open an issue here.
License
Test
npm run test-local