sinch-verification
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "sinch-verification", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Verify mobile numbers using Sinch Verification", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,3 +5,3 @@ // Verify phone number from command line, using Sinch | ||
var sinchVerification = require('./index.js')({ | ||
var sinchVerification = require('../index.js')({ | ||
key: 'YOUR_APPLICATION_KEY', | ||
@@ -18,10 +18,5 @@ secret: 'YOUR_APPLICATION_SECRET' | ||
var code = prompt('What is the PIN code? '); | ||
verification.verify(code).then(function(result) { | ||
console.log('Success', result); | ||
}).fail(function(error) { | ||
console.log('Failure', error); | ||
}); | ||
}).fail(function(error) { | ||
console.log('Failure initializing', error); | ||
}) | ||
verification.verify(code) | ||
.then(console.log) | ||
.fail(console.log) | ||
}).fail(console.log) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6370
62