LambdAuth
LambdAuth copied to clipboard
What is AWS Cognito used for here?
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
It issue the token, with secret keys and expiration management.