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

twilio-flex-token-validator

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twilio-flex-token-validator - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

2

dist/index.d.ts

@@ -9,3 +9,3 @@ export interface Context {

}
export declare type Callback = (error: any, response: any) => void;
export declare type Callback = (error: any, response: Twilio.Response) => void;
export declare type HandlerFn = (context: Context, event: Event, callback: Callback) => void;

@@ -12,0 +12,0 @@ /**

@@ -23,3 +23,3 @@ "use strict";

// tslint:disable-next-line
return failedResponse('AccountSid or AuthToken was not provided. For more information, please visit https://twilio.com/console/runtime/functions/configure');
return failedResponse('Unauthorized: AccountSid or AuthToken was not provided. For more information, please visit https://twilio.com/console/runtime/functions/configure');
}

@@ -44,6 +44,6 @@ return exports.validator(token, accountSid, authToken)

if (!token) {
reject('Token was not provided');
reject('Unauthorized: Token was not provided');
}
if (!accountSid || !authToken) {
reject('AccountSid or AuthToken was not provided');
reject('Unauthorized: AccountSid or AuthToken was not provided');
}

@@ -50,0 +50,0 @@ var authorization = Buffer.from(accountSid + ":" + authToken);

{
"name": "twilio-flex-token-validator",
"version": "1.2.0",
"version": "1.3.0",
"description": "Flex JWE Token Validator",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

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