cheak-wechat-signature-koa

1.0.0 • Public • Published

cheak-wechat-signature-koa

cheak-wechat-signature-koa

Usage

token = 'yourtoken'
const checkSignature = require('cheak-wechat-signature-koa')(token)

...
...

router = new require('koa-router')()
router
.use(checkSignature)
.get( '/', async function (ctx){
    ctx.response.body = ctx.query.echostr
})

如果不是微信发来的请求,会返回''

License

The MIT license

Readme

Keywords

Package Sidebar

Install

npm i cheak-wechat-signature-koa

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • dgxxlhel