Socket
Socket
Sign inDemoInstall

@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.0 to 1.0.1

12

index.js

@@ -100,9 +100,11 @@ 'use strict'

},
context: {
user: IdentityId,
email: payload.email,
'cognito:username': payload['cognito:username']
}
context: Object.assign(
{},
payload,
{
cognitoIdentityId: IdentityId
}
)
})))
.catch(callback)
}
{
"name": "@nrfcloud/api-gateway-authorizer",
"version": "1.0.0",
"version": "1.0.1",
"description": "Custom authorizer for API Gateway",

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

@@ -15,2 +15,13 @@ # Custom API Gateway Authorizer

It fetches the Cognito Identity ID for the user pool token.
The user information will be on `event.requestContext.authorizer`:
```json
{
cognitoIdentityId: 'us-east-1:...',
'cognito:username': 'alex.doe@example.com',
email: 'alex.doe@example.com'
}
```
## Tests

@@ -17,0 +28,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