Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mahnunchik/vkminiapps-sign

Module to verify signature in VK Mini Apps
https://github.com/mahnunchik/vkminiapps-sign

vk vkontakte vkui

Last synced: about 2 months ago
JSON representation

Module to verify signature in VK Mini Apps

Awesome Lists containing this project

README

        

# vkminiapps-sign

Module to verify signature in VK Mini Apps.

## Usage

Koa.js example usage:

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