A sample authentication service implemented with a server-less architecture, using AWS Lambda to host and execute the code and Amazon DynamoDB as persistent storage. This provides a cost-efficient solution that is scalable and highly available and can be used with Amazon Cognito for Developer Authenticated Identities.
Clearly the user are stored in dynamodb table here: https://github.com/danilop/LambdAuth/blob/master/LambdAuthCreateUser/index.js#L39
I was wondering what Cognito is used for here then, would be great if someone could clarify this: https://github.com/danilop/LambdAuth/blob/master/LambdAuthLogin/index.js#L61