danilop / LambdAuth

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.
MIT License
1.37k stars 234 forks source link

What is AWS Cognito used for here? #69

Open kgoedecke opened 6 years ago

kgoedecke commented 6 years ago

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

LucasBadico commented 5 years ago

It issue the token, with secret keys and expiration management.