0.0.14 • Published 3 years ago
mp-server v0.0.14
使用
安装
$ 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
})