mp-server

0.0.14 • Public • Published

使用

安装

$ npm install --save mp-server

初始化

const mp = require('mp-server')
const auth = new mp.Auth({ appid, secret })

模块

Auth

const codeToSessionRes = await auth.codeToSession({ code })
const decryptedData = auth.decryptData({
  sessionKey,
  encryptedData,
  iv
})

Readme

Keywords

Package Sidebar

Install

npm i mp-server

Weekly Downloads

0

Version

0.0.14

License

ISC

Unpacked Size

7.12 kB

Total Files

9

Last publish

Collaborators

  • zhaojintian
  • zhaotoday