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

sinch-verification

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sinch-verification - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"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)
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