mp-server
v0.0.14
Published
Server-side utilities for mini-program.
Downloads
1
Readme
使用
安装
$ 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
})