The Identity Reuse Service is an AWS services designed to meet One Login’s Tier 1 objectives by separating identity reuse journeys from IPV Core and be served by the Identity Reuse Service instead.
The service is written using Typescript.
You should ensure that your machine has the following installed:
- Node.js 22.x
- Git
- AWS CLI
- AWS SAM CLI
Check out the repository and run the following:
npm ci
You can run the unit tests using the following command:
npm run test
You can run the acceptance tests using the following command (replacing the value of <stack-name>
):
SAM_STACK_NAME=<stack-name> npm run test:acceptance
You can lint the code using the following command:
npm run lint
You can automatically resolve linting issues with:
npm run lint-fix
We use pre-commit to check code quality and check for known vulnerabilities before code is pushed to Github. You should install pre-commit using the following:
brew install pre-commit
pre-commit install
Pre-commit will run automatically before code is pushed to Github. However, you can run pre-commit manually by running.
pre-commit
By default, pre-commit will only run against files that are staged. However, you can run pre-commit against all files using:
pre-commit run --all-files