Skip to content

mahnunchik/vkminiapps-sign

Repository files navigation

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();
});

About

Module to verify signature in VK Mini Apps

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published