Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/exanubes/cognito-passwordless-authentication-flow
Repository from exanubes.com for Passwordless authentication flow in Cognito User Pool
https://github.com/exanubes/cognito-passwordless-authentication-flow
authentication aws-cdk aws-cdk-v2 aws-sdk cognito cognito-create-challenge cognito-custom-authentication-flow cognito-define-challenge cognito-identity-provider cognito-idp cognito-user-pool cognito-verify-challenge nestjs passwordless passwordless-authentication
Last synced: about 19 hours ago
JSON representation
Repository from exanubes.com for Passwordless authentication flow in Cognito User Pool
- Host: GitHub
- URL: https://github.com/exanubes/cognito-passwordless-authentication-flow
- Owner: exanubes
- Created: 2022-08-29T03:02:50.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-29T14:14:57.000Z (over 2 years ago)
- Last Synced: 2024-04-17T23:26:58.764Z (9 months ago)
- Topics: authentication, aws-cdk, aws-cdk-v2, aws-sdk, cognito, cognito-create-challenge, cognito-custom-authentication-flow, cognito-define-challenge, cognito-identity-provider, cognito-idp, cognito-user-pool, cognito-verify-challenge, nestjs, passwordless, passwordless-authentication
- Language: TypeScript
- Homepage: https://exanubes.com/blog/passwordless-authentication-flow-in-cognito-user-pool
- Size: 608 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Passwordless authentication flow in Cognito User Pool
Repository from [exanubes.com](https://exanubes.com) for [Passwordless authentication flow in Cognito User Pool](https://exanubes.com/blog/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`.