Skip to content

exanubes/cognito-passwordless-authentication-flow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Passwordless authentication flow in Cognito User Pool

Repository from exanubes.com for Passwordless authentication flow in Cognito User Pool.

This repository is using AWS CDK v2 and is not compatible with AWS CDK v1 bootstrap stack.

Commands:

  • Run npm install in the root of the project
  • Run npm run install-modules in the root of the project to install modules for all subdirectories
  • Run npm run start in the root of the project to run backend and frontend applications simultaneously
  • You can remove modules from all subdirectories with npm run remove-modules

CDK Infrastructure

Run the following commands inside infrastructure directory for building, deploying and destroying the stacks

npm run build
npm run cdk:deploy
npm run cdk:destroy

Both of these commands use the aws-cli sts service to get the account id and aws IAM role exanubes-cloudformation-access in order to dynamically provide role arn. Make sure you're using the account you want to deploy the stacks to and that you have the role created either with the same name or different name and change the scripts in package.json.