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

@nrfcloud/api-gateway-authorizer

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nrfcloud/api-gateway-authorizer - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

9

index.js

@@ -108,3 +108,10 @@ 'use strict'

})))
.catch(callback)
.catch(err => {
// See https://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output
if (err && (err.name === 'TokenExpiredError' || err.name === 'JsonWebTokenError')) {
return callback('Unauthorized') // eslint-disable-line standard/no-callback-literal
}
console.error(err)
return callback(`Error: ${JSON.stringify(err)}`) // eslint-disable-line standard/no-callback-literal
})
}

2

package.json
{
"name": "@nrfcloud/api-gateway-authorizer",
"version": "1.0.1",
"version": "1.1.0",
"description": "Custom authorizer for API Gateway",

@@ -5,0 +5,0 @@ "main": "index.js",

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