Skip to content

Commit

Permalink
Merge pull request #149 from boostcampwm2023/feat/145-implement-refre…
Browse files Browse the repository at this point in the history
…sh-token

[Feat] 사용자 인증에 refresh token 도입
  • Loading branch information
JoonSoo-Kim authored Nov 28, 2023
2 parents 265c224 + 435af3b commit ab8f99d
Show file tree
Hide file tree
Showing 18 changed files with 515 additions and 48 deletions.
129 changes: 111 additions & 18 deletions BE/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions BE/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"test:int": "cross-env NODE_ENV=test jest --runInBand --detectOpenHandles --config ./test/jest-int.json"
},
"dependencies": {
"@liaoliaots/nestjs-redis": "^9.0.5",
"@nestjs/common": "^10.0.0",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "^10.0.0",
Expand All @@ -35,6 +36,7 @@
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"dotenv": "^16.3.1",
"ioredis": "^5.3.2",
"jsonwebtoken": "^9.0.2",
"mysql2": "^3.6.3",
"passport": "^0.6.0",
Expand Down
8 changes: 8 additions & 0 deletions BE/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,20 @@ import { ShapesModule } from "./shapes/shapes.module";
import { ShapesRepository } from "./shapes/shapes.repository";
import { UsersRepository } from "./auth/users.repository";
import { typeORMTestConfig } from "./configs/typeorm.test.config";
import { RedisModule } from "@liaoliaots/nestjs-redis";

@Module({
imports: [
TypeOrmModule.forRoot(
process.env.NODE_ENV === "test" ? typeORMTestConfig : typeORMConfig,
),
RedisModule.forRoot({
readyLog: true,
config: {
host: "223.130.129.145",
port: 6379,
},
}),
DiariesModule,
AuthModule,
IntroduceModule,
Expand Down
Loading

0 comments on commit ab8f99d

Please sign in to comment.