1.0.1 • Published 7 years ago

koa-wechat-signature v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 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

7 years ago

1.0.0

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago