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

twilio

Package Overview
Dependencies
Maintainers
7
Versions
305
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twilio - npm Package Compare versions

Comparing version 3.0.0-edge to 3.1.0-edge

LICENSE

6

lib/AccessToken.js

@@ -69,2 +69,3 @@ var _ = require('underscore');

* @param {string} [opts.identity] - The identity of the first person
* @param {number} [opts.nbf] - Time from epoch in seconds for not before value
*/

@@ -82,2 +83,3 @@ function AccessToken(accountSid, keySid, secret, opts) {

this.identity = opts.identity;
this.nbf = opts.nbf;
this.grants = [];

@@ -109,3 +111,3 @@ }

var grants = {};
if (this.identity) { grants.identity = this.identity; }
if (_.isString(this.identity)) { grants.identity = this.identity; }

@@ -119,5 +121,5 @@ _.each(this.grants, function(grant) {

jti: this.keySid + '-' + now,
nbf: now,
grants: grants
};
if (_.isNumber(this.nbf)) { payload.nbf = this.nbf; }

@@ -124,0 +126,0 @@ return jwt.sign(payload, this.secret, {

{
"name": "twilio",
"description": "A Twilio helper library",
"version": "3.0.0-edge",
"version": "3.1.0-edge",
"author": "Kevin Whinnery <kevin.whinnery@gmail.com>",

@@ -6,0 +6,0 @@ "contributors": [

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