0.0.1 • Published 7 years ago

@ya-wxapp-org/account v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

@ya-wxapp-org/account

NPM version NPM downloads

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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. 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

0.0.1

7 years ago