Build a Serverless Web App with Lambda, API Gateway, S3, DynamoDB and Cognito
1 min read
serverless, lambda, s3, dynamodb, cognito, aws, api-gateway
based on Serverless Web Application Workshop and Build a Serverless Web Application
good example showing cognito registration, verification, and signin with S3 static website
- see
src/1_StaticWebHosting/website/js/cognito-auth.jsfor details register, verify, signinWildRydes.authTokenmethod
- authorized API Gateway request

NOTE: web in browser cognito SDK stores identity (JWT token) information in
localStorage. This is what allows maintaining session credentials across page reloads.- see