1.0.9 • Published 6 years ago

cognito-authentication-middleware v1.0.9

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

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.

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago