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

authy

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

authy - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

6

index.js

@@ -123,5 +123,9 @@ var request = require('request');

locale: params.locale,
custom_message: params.custom_message
custom_message: params.custom_message,
code_length: params.code_length,
custom_code: params.custom_code
};
options = Object.assign(options, params);
self._request("post", "/protected/json/phones/verification/start", options, callback);

@@ -128,0 +132,0 @@ },

4

package.json
{
"name": "authy",
"version": "1.3.0",
"version": "1.3.1",
"description": "Authy.com API lib for node.js",

@@ -27,3 +27,3 @@ "main": "index.js",

"dependencies": {
"request": "^2.72.0"
"request": "^2.87.0"
},

@@ -30,0 +30,0 @@ "devDependencies": {

# node-authy [![Dependency Status](https://david-dm.org/evilpacket/node-authy.png)](https://david-dm.org/evilpacket/node-authy)
[Authy](https://authy.com/) API Client for Node.js written by Adam Baldwin.
[Authy](https://www.twilio.com/authy) and [Verify](https://www.twilio.com/verify) API Client for Node.js written by Adam Baldwin.

@@ -11,3 +11,3 @@ ## Installation

When in doubt check out the official [Authy API docs](http://docs.authy.com/).
When in doubt check out the official [Authy](https://www.twilio.com/docs/authy) and [Verify](https://www.twilio.com/docs/verify) docs.

@@ -22,10 +22,4 @@ ## Usage

If you want to use the sandbox for testing require this way.
```javascript
var authy = require('authy')('SANDBOX_APIKEY', 'http://sandbox-api.authy.com');
```
#### Send OneTouch
[OneTouch API docs](http://docs.authy.com/onetouch.html#onetouch-api) are the source of truth.
[OneTouch API docs](https://www.twilio.com/docs/authy/api/push-authentications) are the source of truth.
send_approval_request(id,user_payload,hidden_details,logos,callback)

@@ -70,2 +64,3 @@ ```javascript

#### Register New User
[User API Information](https://www.twilio.com/docs/authy/api/users)

@@ -103,4 +98,5 @@ register_user(email, cellphone, [country_code], [send_install_link_via_sms], callback);

#### Request Call (Email support@authy.com to enable this feature)
=======
request_call(id, [force], callback);

@@ -135,2 +131,3 @@

#### Start Phone Verification
Browse the [API docs](https://www.twilio.com/docs/verify/api/verification) for all available params.

@@ -140,3 +137,3 @@ phones().verification_start(phone_number, country_code, params, callback);

```javascript
authy.phones().verification_start('111-111-1111', '1', { via: 'sms', locale: 'pl', custom_message: 'My message' }, function(err, res) {
authy.phones().verification_start('111-111-1111', '1', { via: 'sms', locale: 'en', code_length: '6' }, function(err, res) {

@@ -150,2 +147,3 @@ });

#### Check Phone Verification
Browse the [API docs](https://www.twilio.com/docs/verify/api/verification) for all available params.

@@ -160,16 +158,6 @@ phones().verification_check(phone_number, country_code, verification_code, callback);

#### Get Phone Info
phones().info(phone_number, country_code, callback);
```javascript
authy.phones().info('111-111-1111-', '1', function (err, res) {
});
```
***
##### Contributors
- [Daniel Barnes](https://github.com/DanielBarnes)
- [Josh Staples](https://github.com/josh-authy)
var apikey = "0cd08abec2e9b9641e40e9470a7fc336";
var authy = require('../index')(apikey,'http://sandbox-api.authy.com');
var authy = require('../index')(apikey, 'http://sandbox-api.authy.com');

@@ -9,3 +9,3 @@ var test_user = {email: 'baldwin@andyet.net', phone: '825-589-8570', country: '57'};

*/
process.on('uncaughtException', function(err) {
process.on('uncaughtException', function (err) {
console.error(err.stack);

@@ -179,5 +179,5 @@ });

exports['OneTouch Create Request'] = function (test){
var user_payload = { 'message': 'Your message here'};
authy.send_approval_request(test_user.id, user_payload, {}, null, function(err, res){
exports['OneTouch Create Request'] = function (test) {
var user_payload = {'message': 'Your message here'};
authy.send_approval_request(test_user.id, user_payload, {}, null, function (err, res) {
test.ok(res);

@@ -190,5 +190,5 @@ test.equal(typeof(res), 'object', 'Response should be an object.');

exports['OneTouch Check Approval Status'] = function (test){
var user_payload = { 'message': 'Your message here'};
authy.send_approval_request(test_user.uuid, function(err, res){
exports['OneTouch Check Approval Status'] = function (test) {
var user_payload = {'message': 'Your message here'};
authy.send_approval_request(test_user.uuid, function (err, res) {
test.ok(res);

@@ -265,3 +265,5 @@ test.equal(typeof(res), 'object', 'Response should be an object.');

locale: "pl",
custom_message: "This is a custom message"
custom_message: "This is a custom message",
code_length: "6",
custom_code: "12345"
}

@@ -268,0 +270,0 @@ authy.phones().verification_start("111-111-1111", "1", params,

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