aws-cognito-validate-user-id-by-access-token
1.0.3 • Public • Published How to use
Installation
npm install aws-cognito-validate-user-id-by-access-token
Usage
Replace:
ACCESS_TOKEN_FROM_COGNITO
with the access token you get from AWS Cognito
SUB_FROM_COGNITO
with the the sub/user id of the user in AWS Cognito User Pools
const validateUserId = require('aws-cognito-validate-user-id-by-access-token');
validateUserId(ACCESS_TOKEN_FROM_COGNITO, SUB_FROM_COGNITO).then(res => {
})
As a Lambda layer
mkdir nodejs
cd nodejs
npm init -y
npm install aws-cognito-validate-user-id-by-access-token
Then zip
the nodejs folder and upload to lambda
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
1.0.3 | 0 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
1.0.3 | 0 | |
1.0.2 | 0 | |
1.0.1 | 0 | |
1.0.0 | 0 | |
Package Sidebar
Install
npm i aws-cognito-validate-user-id-by-access-token
Weekly Downloads