1.0.9 • Published 7 years ago

cognito-authentication-middleware v1.0.9

Weekly downloads
3
License
ISC
Repository
github
Last release
7 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

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago