@ya-wxapp-org/account
v0.0.1
Published
wx account
Downloads
1
Readme
@ya-wxapp-org/account
Install
yarn add @ya-wxapp-org/account
Usage
const newAccount = require('@ya-wxapp-org/account');
const account = newAccount($req, $modal, timeout);
// $req: {
// getSession: 根据小程序文档实现的获取open_id的接口,返回值包裹在result内,
// getAccount: 账号信息,返回值包裹在result内
// }
// $modal: { title: '拒绝授权时的提示标题', content: '拒绝授权的时候的提示内容' }
// timeout: 账号信息过期时间 默认为 5 * 86400000 毫秒
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
@ya-wxapp-org/account © fimars, Released under the MIT License. Authored and maintained by fimars with help from contributors (list).
github.com/fimars · GitHub @fimars · Twitter @fimars