twilio-flex-token-validator
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -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
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
11720