Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ringcaptcha-es6
Advanced tools
Readme
ringcaptcha/ringcaptcha-es6
is a Node.js module for communicating with the RingCaptcha API, which simplifies the Onboarding and Verification of Users. This project is forked from https://github.com/ringcaptcha/ringcaptcha-node which uses callbacks.
This version is redesigned for codes that requires promises and does not want to be forced to implement the original version's strict configuration style.
Make sure you are runing at least NodeJS version 6.7 Run the following in the terminal
npm install ringcaptcha-es6
Add a reference to your code.
const RingCaptcha = require('ringcaptcha-es6');
Make sure you have registered in RingCaptcha (http://www.ringcaptcha.com/) and created an app. You should have an APP_KEY, API_KEY and SECRET_KEY generated. You will need these to create a new instance of the RingCaptchaClient.
const rc = RingCaptcha.init(APP_KEY, API_KEY, SECRET_KEY, OPTIONS);
*for now options is pretty useless, just leave it blank.
##Functions
rc.getToken('en_gb')
.then((data) => {
if (!data.token) {
throw new Error('NO_TOKEN_CREATED');
}
//store this token somewhere in your session for later use
req.session.ringcaptcha.token = data.token;
});
rc.sendVerificationCodeSMS("mytoken-qwertyuiop", '+639171234567')
.then((data) => {
if (data.status === "ERROR") {
throw new Error("RINGCAPTCHA_ERROR");
}
//data will contain lots of information so check it
});
rc.sendVerificationCodeVoice("mytoken-qwertyuiop", '+639171234567')
.then((data) => {
if (data.status === "ERROR") {
throw new Error("RINGCAPTCHA_ERROR");
}
//data will contain lots of information so check it
});
rc.verifyCode("mytoken-qwertyuiop", "+639171234567", 'WXYZ')
.then((data) => {
if (data.status === "ERROR") {
throw new Error("RINGCAPTCHA_ERROR");
}
//data will contain lots of information so check it
});
rc.getPhoneInfo("+639171234567")
.then((data) => {
if (data.status === "ERROR") {
throw new Error("RINGCAPTCHA_ERROR");
}
//data will contain lots of information so check it
});
FAQs
Node.js wrapper for the RingCaptcha API using ECMAScript 6 and Promises
The npm package ringcaptcha-es6 receives a total of 0 weekly downloads. As such, ringcaptcha-es6 popularity was classified as not popular.
We found that ringcaptcha-es6 demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.