Socket
Socket
Sign inDemoInstall

vk-apps-sdk

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vk-apps-sdk

SDK for VK Apps backend


Version published
Weekly downloads
7
increased by133.33%
Maintainers
1
Install size
5.04 kB
Created
Weekly downloads
 

Readme

Source

VK Apps SDK

Nodejs SDK for VK Apps service's backend

Install

npm i vk-apps-sdk -s

Examples

const PORT = process.env.PORT || 3000
const express = require('express')
const app = express()

const VKAppsSDK = require('vk-apps-sdk')
const VKApp = new VKAppsSDK({
    CLIENT_SECRET: 'okM7c8C1V7wbe3eCFqK7'
})


app.use( (req, res, next) => {
    req.auth = VKApp.checkVKQueryParamsSign(req.body)
    next()
})

app.all( (req, res) => {
    req.json({
        auth: req.auth
    })
})

app.listen(PORT)

Methods

.checkVKQueryParamsSign(params)

Checks VK Apps query params signature

.checkVKPaySignature(data_str, signature)

Checks VK Pay signature for base64 encoded data string

Keywords

FAQs

Last updated on 20 Mar 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc