Skip to content

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

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages