├── .eslintrc.js ├── .gitignore ├── .prettierrc ├── README.md ├── docs └── assets │ └── whatsapp-web-js.jpg ├── nest-cli.json ├── package.json ├── src ├── app.module.ts ├── main.ts └── modules │ ├── auth │ ├── auth.controller.ts │ ├── auth.module.ts │ ├── auth.service.ts │ ├── decorators │ │ ├── auth.decorator.ts │ │ ├── get-user.decorator.ts │ │ ├── raw-headers.decorators.ts │ │ └── role-protect.decorator.ts │ ├── dto │ │ ├── forgot-password.dto.ts │ │ ├── login.dto.ts │ │ ├── logout.dto.ts │ │ ├── refresh-token.dto.ts │ │ ├── register.dto.ts │ │ ├── resend-email-verify.dto.ts │ │ └── reset-password.dto.ts │ ├── entities │ │ ├── password-reset.entity.ts │ │ ├── refresh_token.entity.ts │ │ └── user-verification.entity.ts │ ├── guards │ │ ├── jwt-auth.guard.ts │ │ └── user.guard.ts │ ├── interfaces │ │ ├── jwt-payload.interface.ts │ │ └── valid-roles.interface.ts │ ├── services │ │ ├── auth-token.service.ts │ │ ├── login.service.ts │ │ ├── password-reset.service.ts │ │ ├── register.service.ts │ │ ├── shared │ │ │ └── user-validation.service.ts │ │ ├── token │ │ │ └── token.service.ts │ │ └── users-verification.service.ts │ └── strategy │ │ └── jwt.strategy.ts │ ├── common │ └── dto │ │ └── pagination.dto.ts │ ├── files │ ├── cloudinary.service.ts │ ├── files.controller.ts │ └── files.module.ts │ ├── mail │ ├── entities │ │ └── mail.entity.ts │ ├── mail.module.ts │ ├── mail.service.ts │ └── templates │ │ ├── reset-password.hbs │ │ └── verify-email.hbs │ ├── roles │ ├── entities │ │ └── role.entity.ts │ ├── roles.controller.ts │ ├── roles.module.ts │ └── roles.service.ts │ ├── users │ ├── entities │ │ ├── user.entity.ts │ │ └── users-information.entity.ts │ ├── users.controller.ts │ ├── users.module.ts │ └── users.service.ts │ └── whatsapp │ ├── services │ └── whatsapp.service.ts │ └── whatsapp.module.ts ├── test ├── app.e2e-spec.ts └── jest-e2e.json ├── tsconfig.build.json └── tsconfig.json /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/README.md -------------------------------------------------------------------------------- /docs/assets/whatsapp-web-js.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/docs/assets/whatsapp-web-js.jpg -------------------------------------------------------------------------------- /nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/nest-cli.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/package.json -------------------------------------------------------------------------------- /src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/app.module.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/modules/auth/auth.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/auth.controller.ts -------------------------------------------------------------------------------- /src/modules/auth/auth.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/auth.module.ts -------------------------------------------------------------------------------- /src/modules/auth/auth.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/auth.service.ts -------------------------------------------------------------------------------- /src/modules/auth/decorators/auth.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/decorators/auth.decorator.ts -------------------------------------------------------------------------------- /src/modules/auth/decorators/get-user.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/decorators/get-user.decorator.ts -------------------------------------------------------------------------------- /src/modules/auth/decorators/raw-headers.decorators.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/decorators/raw-headers.decorators.ts -------------------------------------------------------------------------------- /src/modules/auth/decorators/role-protect.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/decorators/role-protect.decorator.ts -------------------------------------------------------------------------------- /src/modules/auth/dto/forgot-password.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/dto/forgot-password.dto.ts -------------------------------------------------------------------------------- /src/modules/auth/dto/login.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/dto/login.dto.ts -------------------------------------------------------------------------------- /src/modules/auth/dto/logout.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/dto/logout.dto.ts -------------------------------------------------------------------------------- /src/modules/auth/dto/refresh-token.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/dto/refresh-token.dto.ts -------------------------------------------------------------------------------- /src/modules/auth/dto/register.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/dto/register.dto.ts -------------------------------------------------------------------------------- /src/modules/auth/dto/resend-email-verify.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/dto/resend-email-verify.dto.ts -------------------------------------------------------------------------------- /src/modules/auth/dto/reset-password.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/dto/reset-password.dto.ts -------------------------------------------------------------------------------- /src/modules/auth/entities/password-reset.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/entities/password-reset.entity.ts -------------------------------------------------------------------------------- /src/modules/auth/entities/refresh_token.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/entities/refresh_token.entity.ts -------------------------------------------------------------------------------- /src/modules/auth/entities/user-verification.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/entities/user-verification.entity.ts -------------------------------------------------------------------------------- /src/modules/auth/guards/jwt-auth.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/guards/jwt-auth.guard.ts -------------------------------------------------------------------------------- /src/modules/auth/guards/user.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/guards/user.guard.ts -------------------------------------------------------------------------------- /src/modules/auth/interfaces/jwt-payload.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/interfaces/jwt-payload.interface.ts -------------------------------------------------------------------------------- /src/modules/auth/interfaces/valid-roles.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/interfaces/valid-roles.interface.ts -------------------------------------------------------------------------------- /src/modules/auth/services/auth-token.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/services/auth-token.service.ts -------------------------------------------------------------------------------- /src/modules/auth/services/login.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/services/login.service.ts -------------------------------------------------------------------------------- /src/modules/auth/services/password-reset.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/services/password-reset.service.ts -------------------------------------------------------------------------------- /src/modules/auth/services/register.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/services/register.service.ts -------------------------------------------------------------------------------- /src/modules/auth/services/shared/user-validation.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/services/shared/user-validation.service.ts -------------------------------------------------------------------------------- /src/modules/auth/services/token/token.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/services/token/token.service.ts -------------------------------------------------------------------------------- /src/modules/auth/services/users-verification.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/services/users-verification.service.ts -------------------------------------------------------------------------------- /src/modules/auth/strategy/jwt.strategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/auth/strategy/jwt.strategy.ts -------------------------------------------------------------------------------- /src/modules/common/dto/pagination.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/common/dto/pagination.dto.ts -------------------------------------------------------------------------------- /src/modules/files/cloudinary.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/files/cloudinary.service.ts -------------------------------------------------------------------------------- /src/modules/files/files.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/files/files.controller.ts -------------------------------------------------------------------------------- /src/modules/files/files.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/files/files.module.ts -------------------------------------------------------------------------------- /src/modules/mail/entities/mail.entity.ts: -------------------------------------------------------------------------------- 1 | export class Mail {} 2 | -------------------------------------------------------------------------------- /src/modules/mail/mail.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/mail/mail.module.ts -------------------------------------------------------------------------------- /src/modules/mail/mail.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/mail/mail.service.ts -------------------------------------------------------------------------------- /src/modules/mail/templates/reset-password.hbs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/mail/templates/reset-password.hbs -------------------------------------------------------------------------------- /src/modules/mail/templates/verify-email.hbs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/mail/templates/verify-email.hbs -------------------------------------------------------------------------------- /src/modules/roles/entities/role.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/roles/entities/role.entity.ts -------------------------------------------------------------------------------- /src/modules/roles/roles.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/roles/roles.controller.ts -------------------------------------------------------------------------------- /src/modules/roles/roles.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/roles/roles.module.ts -------------------------------------------------------------------------------- /src/modules/roles/roles.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/roles/roles.service.ts -------------------------------------------------------------------------------- /src/modules/users/entities/user.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/users/entities/user.entity.ts -------------------------------------------------------------------------------- /src/modules/users/entities/users-information.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/users/entities/users-information.entity.ts -------------------------------------------------------------------------------- /src/modules/users/users.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/users/users.controller.ts -------------------------------------------------------------------------------- /src/modules/users/users.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/users/users.module.ts -------------------------------------------------------------------------------- /src/modules/users/users.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/users/users.service.ts -------------------------------------------------------------------------------- /src/modules/whatsapp/services/whatsapp.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/whatsapp/services/whatsapp.service.ts -------------------------------------------------------------------------------- /src/modules/whatsapp/whatsapp.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/src/modules/whatsapp/whatsapp.module.ts -------------------------------------------------------------------------------- /test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/test/jest-e2e.json -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remsystem-official/auth-nestjs/HEAD/tsconfig.json --------------------------------------------------------------------------------