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

@vonage/verify

Package Overview
Dependencies
Maintainers
37
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vonage/verify - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

5

package.json
{
"name": "@vonage/verify",
"version": "1.0.10",
"version": "1.0.11",
"description": "Verify package for Vonage",

@@ -40,4 +40,3 @@ "keywords": [

"@vonage/server-client": "^1.0.8",
"@vonage/vetch": "^1.0.6",
"tslib": "^2.4.1"
"@vonage/vetch": "^1.0.6"
},

@@ -44,0 +43,0 @@ "devDependencies": {

46

README.md

@@ -23,6 +23,6 @@ # Vonage Verify SDK for Node.js

* [Installation](#installation)
* [Usage](#using-the-vonage-verify-sdk)
* [Promises](#promises)
* [Testing](#testing)
- [Installation](#installation)
- [Usage](#using-the-vonage-verify-sdk)
- [Promises](#promises)
- [Testing](#testing)

@@ -58,14 +58,15 @@ ## Installation

```js
const { Vonage } = require('@vonage/server-sdk');
const { Vonage } = require('@vonage/server-sdk')
const credentials = {
apiKey: API_KEY,
apiSecret: API_SECRET
};
const options = {};
const vonage = new Vonage(credentials, options);
apiSecret: API_SECRET,
}
const options = {}
const vonage = new Vonage(credentials, options)
vonage.verify.check(VERIFY_REQUEST_ID, CODE)
.then(resp => console.log(resp))
.catch(err => console.error(err));
vonage.verify
.check(VERIFY_REQUEST_ID, CODE)
.then((resp) => console.log(resp))
.catch((err) => console.error(err))
```

@@ -82,11 +83,11 @@

```js
const { Auth } = require('@vonage/auth');
const { Verify } = require('@vonage/verify');
const { Auth } = require('@vonage/auth')
const { Verify } = require('@vonage/verify')
const credentials = new Auth({
apiKey: API_KEY,
apiSecret: API_SECRET
});
const options = {};
const verifyClient = new Verify(credentials, options);
apiSecret: API_SECRET,
})
const options = {}
const verifyClient = new Verify(credentials, options)
```

@@ -103,7 +104,8 @@

```js
const resp = await vonage.vrify.check(VERIFY_REQUEST_ID, CODE);
const resp = await vonage.vrify.check(VERIFY_REQUEST_ID, CODE)
vonage.verify.check(VERIFY_REQUEST_ID, CODE)
.then(resp => console.log(resp))
.catch(err => console.error(err));
vonage.verify
.check(VERIFY_REQUEST_ID, CODE)
.then((resp) => console.log(resp))
.catch((err) => console.error(err))
```

@@ -110,0 +112,0 @@

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