
Research
/Security News
737 Chrome VPN Extensions Linked to Brand Impersonation and Browser Traffic Redirection
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.
@vnl-works/mchplus-auth-js
Advanced tools
This API connects to the authentication of MCH Plus, the blockchain game publishing service of doublejump.tokyo.
Please read the documentation below for how to use the API and which endpoints are exposed.
npm install mchplus-auth-js
yarn add mchplus-auth-js
0.1.1Since version 0.1.1, mchplus-auth-js needs a provider instead of a web3 instance. This allows projects to freely choose between web3.js or ethers.js.
Note: mchplus-auth-js uses ethers.js under the hood.
0.1.1)import MchplusAuth from 'mchplus-auth-js'
const clientId = 'xxx'
const provider = // your user's provider
const env = 'sand' || 'prod' // env can be either sand or prod
const lang = 'en' // set your user's language here
const auth = new MchplusAuth(clientId, provider, env, lang)
// call methods here
0.1.1)import MchplusAuth from 'mchplus-auth-js'
const clientId = 'xxx'
const web3 = // your user's web3 instance
const env = 'sand' || 'prod' // env can be either sand or prod
const lang = 'en' // set your user's language here
const auth = new MchplusAuth(clientId, web3, env, lang)
// call methods here
Users sign up and log into the game with their Ethereum address. The signAuth logs in the user (or creates a new account if first login) and signs a Ethereum transaction with the public key.
await auth.signAuth();
MCH Plus offers a phone number verification to protect our games from multiple accounts. The account verification has 2 steps:
const number = "+8108092624621";
const isCall = false; // if true, user will get called instead of text message
await auth.submitNumber(number, isCall);
const code = "xxxxxx"; // the frontend should have an input field
await auth.confirmNumber(code);
The API also provides some helper functions to make the frontend development easier:
Return a list of available regions and their country codes:
await auth.getNumberRegions();
Generates a QR code for the user to log into the game.
await auth.getQRCode(callbackUrl, state);
You can get the values of the terms of use and privacy policy associated with the client_id.
await auth.getClientInfo();
FAQs
Unknown package
The npm package @vnl-works/mchplus-auth-js receives a total of 5 weekly downloads. As such, @vnl-works/mchplus-auth-js popularity was classified as not popular.
We found that @vnl-works/mchplus-auth-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.