Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

admob-ssv

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

admob-ssv

Tool for validate AdMob rewarded ads signatures SSV

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26
increased by4%
Maintainers
0
Weekly downloads
 
Created
Source

AdMob rewarded ads SSV for Node.js

Tool for validate AdMob SSV signatures from backend

Getting Started 🚀

Prerequisites 📋

  • Node >= 12.0.0

Installing 🔧

Install via NPM

$ npm install --save @exoshtw/admob-ssv

Or Yarn

$ yarn add @exoshtw/admob-ssv

Usage 📦

Use as ES module:

import url from 'url';
import http from 'http';
import Verifier from '@exoshtw/admob-ssv';

const verifier = new Verifier();

const server = http.createServer(async (request) => {
    const parts = urls.parse(request.url, true);
    const isValid = await verifier.verify(parts.query);
    // ...
});

Example with express

import Verifier from '@exoshtw/admob-ssv';

const verifier = new Verifier();

app.get('/ssvcallback', (req, res, next) => {
    verifier.verify(req.query)
        .then((isValid) => {
            if (!isValid) {
                res.status(500);
                res.json({
                    error: 'Invalid signature',
                });
            }

            // ...
        })
        .catch((e) => {
            return next(e);
        });
});

Get sources 🔧

Clone git repo:

$ git clone git@github.com:exoshtw/node-admob-ssv.git

Install deps

$ npm install -d

or

$ yarn

Running the tests ⚙️

This lib use Jest for testing, for run this use:

$ npm test

Versioning 📌

We use SemVer for versioning. For the versions available, see the releases on this repository.

Author ✒️

  • exos - Initial work - exos

License 📄

This project is licensed under the GPL-2.0 License.

Acknowledgments

  • Bug reports and pull request are welcome 😊
  • Buy me a beer 🍺: BTC 14NvJxpQsxs4EK8MTq2rubTDwuy54uCesu

Keywords

FAQs

Package last updated on 12 Sep 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc