1.0.3 • Published 5 years ago
wechat-h5-authorize v1.0.3
使用方法
const weChat = require('weChat-h5-authorize')
weChat.create({
appId: appId,
appSecret: appsecret
})
const userInfo = weChat.getUserInfo(code)
// appId 为微信公众号 appId
// appSecret 为微信公众号 appsecret
// code 为微信授权后获取到的 code码
// userInfo 就是获取到的微信用户信息