feat: added JWT to login controller
parent
0410d94f
No related branches found
No related tags found
Showing
- package.json 8 additions, 0 deletionspackage.json
- src/app.module.ts 3 additions, 1 deletionsrc/app.module.ts
- src/constants.ts 3 additions, 0 deletionssrc/constants.ts
- src/login/jwt.strategy.ts 17 additions, 0 deletionssrc/login/jwt.strategy.ts
- src/login/local.strategy.ts 19 additions, 0 deletionssrc/login/local.strategy.ts
- src/login/login.controller.ts 17 additions, 0 deletionssrc/login/login.controller.ts
- src/login/login.module.ts 25 additions, 0 deletionssrc/login/login.module.ts
- src/login/login.service.ts 30 additions, 0 deletionssrc/login/login.service.ts
- src/people/people.controller.ts 6 additions, 5 deletionssrc/people/people.controller.ts
- src/people/people.module.ts 8 additions, 8 deletionssrc/people/people.module.ts
- src/people/people.service.ts 3 additions, 0 deletionssrc/people/people.service.ts
- src/types/login.ts 4 additions, 0 deletionssrc/types/login.ts
... | ... | @@ -27,12 +27,18 @@ |
"dependencies": { | ||
"@nestjs/common": "^9.0.0", | ||
"@nestjs/core": "^9.0.0", | ||
"@nestjs/jwt": "^9.0.0", | ||
"@nestjs/mongoose": "^9.2.1", | ||
"@nestjs/passport": "^9.0.0", | ||
"@nestjs/platform-express": "^9.0.0", | ||
"class-transformer": "^0.5.1", | ||
"class-validator": "^0.13.2", | ||
"eslint-import-resolver-typescript": "^3.5.2", | ||
"fastify": "^4.9.2", | ||
"mongoose": "^6.7.2", | ||
"passport": "^0.6.0", | ||
"passport-jwt": "^4.0.0", | ||
"passport-local": "^1.0.0", | ||
"reflect-metadata": "^0.1.13", | ||
"rimraf": "^3.0.2", | ||
"rxjs": "^7.2.0" | ||
... | ... | @@ -44,6 +50,8 @@ |
"@types/express": "^4.17.13", | ||
"@types/jest": "28.1.8", | ||
"@types/node": "^16.0.0", | ||
"@types/passport-jwt": "^3.0.8", | ||
"@types/passport-local": "^1.0.34", | ||
"@types/supertest": "^2.0.11", | ||
"@typescript-eslint/eslint-plugin": "^5.0.0", | ||
"@typescript-eslint/parser": "^5.0.0", | ||
... | ... |
src/constants.ts
0 → 100644
src/login/jwt.strategy.ts
0 → 100644
src/login/local.strategy.ts
0 → 100644
src/login/login.controller.ts
0 → 100644
src/login/login.module.ts
0 → 100644
src/login/login.service.ts
0 → 100644
src/types/login.ts
0 → 100644
Please register or sign in to comment