├── .gitignore ├── README.md ├── __tests__ ├── controllers │ └── AuthController.spec.ts └── helpers │ ├── FakeRepository.ts │ └── helpers.ts ├── package.json ├── src ├── application │ ├── repositories │ │ └── IUserReadOnlyRepository.ts │ └── usecase │ │ ├── ISigninUseCase.ts │ │ ├── IUserDto.ts │ │ └── SignInUseCase.ts ├── configuration │ └── usecases │ │ └── AuthServiceLocator.ts ├── constants │ └── types.ts ├── domain │ └── User.ts ├── entrypoint │ └── controllers │ │ └── AuthController.ts ├── index.ts └── infrastructure │ └── UserRepository.ts ├── tsconfig.json └── tslint.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/controllers/AuthController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/__tests__/controllers/AuthController.spec.ts -------------------------------------------------------------------------------- /__tests__/helpers/FakeRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/__tests__/helpers/FakeRepository.ts -------------------------------------------------------------------------------- /__tests__/helpers/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/__tests__/helpers/helpers.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/package.json -------------------------------------------------------------------------------- /src/application/repositories/IUserReadOnlyRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/src/application/repositories/IUserReadOnlyRepository.ts -------------------------------------------------------------------------------- /src/application/usecase/ISigninUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/src/application/usecase/ISigninUseCase.ts -------------------------------------------------------------------------------- /src/application/usecase/IUserDto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/src/application/usecase/IUserDto.ts -------------------------------------------------------------------------------- /src/application/usecase/SignInUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/src/application/usecase/SignInUseCase.ts -------------------------------------------------------------------------------- /src/configuration/usecases/AuthServiceLocator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/src/configuration/usecases/AuthServiceLocator.ts -------------------------------------------------------------------------------- /src/constants/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/src/constants/types.ts -------------------------------------------------------------------------------- /src/domain/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/src/domain/User.ts -------------------------------------------------------------------------------- /src/entrypoint/controllers/AuthController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/src/entrypoint/controllers/AuthController.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/infrastructure/UserRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/src/infrastructure/UserRepository.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vykes-mac/clean-authentication-flow/HEAD/tslint.json --------------------------------------------------------------------------------