Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Authy and Verify API Client for Node.js written by Adam Baldwin.
npm install authy
When in doubt check out the official Authy and Verify docs.
var authy = require('authy')('APIKEY');
OneTouch API docs are the source of truth. send_approval_request(id,user_payload,hidden_details,logos,callback)
authy.send_approval_request('1337', user_payload, [hidden_details], [logos], function (err, res) {
// res = {"approval_request":{"uuid":"########-####-####-####-############"},"success":true}
});
check_approval_status (uuid,callback)
authy.check_approval_status(uuid, function(err, res) {
res = {
"approval_request": {
"_app_name": YOUR_APP_NAME,
"_app_serial_id": APP_SERIAL_ID,
"_authy_id": AUTHY_ID,
"_id": INTERNAL_ID,
"_user_email": EMAIL_ID,
"app_id": APP_ID,
"created_at": TIME_STAMP,
"notified": false,
"processed_at": null,
"seconds_to_expire": 600,
"status": 'pending',
"updated_at": TIME_STAMP,
"user_id": USER_ID,
"uuid": UUID
},
"success": true
}
});
register_user(email, cellphone, [country_code], [send_install_link_via_sms], callback);
authy.register_user('baldwin@andyet.net', '509-555-1212', function (err, res) {
// res = {user: {id: 1337}} where 1337 = ID given to use, store this someplace
});
If not given, country_code
defaults to "1"
and send_install_link_via_sms
defaults to true
.
verify(id, token, [force], callback);
authy.verify('1337', '0000000', function (err, res) {
});
request_sms(id, [force], callback);
authy.request_sms('1337', function (err, res) {
});
=======
request_call(id, [force], callback);
authy.request_call('1337', function (err, res) {
});
delete_user(id, callback);
authy.delete_user('1337', function (err, res) {
});
user_status(id, callback);
authy.user_status('1337', function (err, res) {
});
Browse the API docs for all available params.
phones().verification_start(phone_number, country_code, params, callback);
authy.phones().verification_start('111-111-1111', '1', { via: 'sms', locale: 'en', code_length: '6' }, function(err, res) {
});
The params
argument is optional and sets 'sms' as the default via
, leaving the other two options blank.
Browse the API docs for all available params.
phones().verification_check(phone_number, country_code, verification_code, callback);
authy.phones().verification_check('111-111-1111', '1', '0000', function (err, res) {
});
Browse the API docs for all available params.
phones().verification_status(phone_number, country_code, callback);
authy.phones().verification_status('111-111-1111', '1', function (err, res) {
});
FAQs
Authy.com API lib for node.js
We found that authy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.