What problem does it solve?
vk-bridge helps you build VK Mini Apps that can securely identify users, handle VK Pay payments, and interact with native VK features without trusting forgeable client launch parameters.
Core Features & Use Cases
- Server-side HMAC launch-param validation: verify the VK Mini App
vk_* parameters using HMAC-SHA256 with base64url no-padding to establish a trusted identity boundary.
- Identity & OAuth flows: retrieve profile data and request OAuth tokens for VK API calls via
VKWebAppGetUserInfo, VKWebAppGetEmail, VKWebAppGetPhoneNumber, and VKWebAppGetAuthToken.
- Payments & notifications: open VK Pay forms with
VKWebAppOpenPayForm and send in-VK notifications using VKWebAppAllowNotifications plus server-side messages.send with proper intent handling.
- Use case example: building a subscription purchase flow where the app opens VK Pay, then your server confirms the
transaction_id, enforces idempotency, and only then grants premium.
Quick Start
Use the vk-bridge skill to validate VK Mini App launch params including secure HMAC-SHA256 sign checking before trusting vk_user_id.