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: 5 months ago
JSON representation
Module to verify signature in VK Mini Apps
- Host: GitHub
- URL: https://github.com/mahnunchik/vkminiapps-sign
- Owner: mahnunchik
- Created: 2019-10-16T20:18:01.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-15T19:03:58.000Z (about 3 years ago)
- Last Synced: 2025-04-23T02:39:23.278Z (6 months ago)
- Topics: vk, vkontakte, vkui
- Language: JavaScript
- Homepage:
- Size: 112 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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();
});
```