vkminiapps-sign

2.0.1 • Public • Published

vkminiapps-sign

Module to verify signature in VK Mini Apps.

Usage

Koa.js example usage:

import signature from 'vkminiapps-sign';

const VK_SECRET = '...';

app.use(async (ctx, next) => {
  if (!signature(VK_SECRET, ctx.query)) {
    ctx.throw(400, 'VK signature not match');
  }
  await next();
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.1
    1
  • 2.0.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i vkminiapps-sign

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

2.15 kB

Total Files

3

Last publish

Collaborators

  • mahnunchik