cognito-authentication-middleware
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

cognito-authentication-middleware

It's a middleware for cognito authentication based on cognito-express.

How to use

import authentication from 'cognito-authentication-middleware'
...
const app = express()
const awsRegion = 'Your AWS region'
const cognitoUserPoolId = 'Your Cognito User Pool Id'
app.use(authentication(awsRegion, cognitoUserPoolId))

The authenticated user will be available on request.user field.

Readme

Keywords

none

Package Sidebar

Install

npm i cognito-authentication-middleware

Weekly Downloads

17

Version

1.0.9

License

ISC

Unpacked Size

5.96 kB

Total Files

5

Last publish

Collaborators

  • kseniasecurity