1.0.1 • Published 6 years ago

koa-wechat-signature v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

HOW TO USE

const { wechatSignature }= require('koa-wechat-signature')

app.use(wechatSignature({
  token,  // YOUR TOKEN 
  path    //YOUR PATH . Default '/'
}))

NOW USE

app.use(async (ctx, next) => {
  // when valid success, the echostr key will be in ctx.request.wechat
  if (ctx.method === 'GET') {
    ctx.body = ctx.request.wechat.echostr || false
  }
})
1.0.1

6 years ago

1.0.0

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago