Skip to content

Commit

Permalink
Add missing refresh token settings in docker-compose-full.yml (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
choidabom authored Sep 13, 2024
1 parent c7f3600 commit 34a52c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion backend/docker/docker-compose-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ services:
GITHUB_CLIENT_ID: "your_github_client_id_here"
GITHUB_CLIENT_SECRET: "your_github_client_secret_here"
GITHUB_CALLBACK_URL: "http://localhost:3000/auth/login/github"
JWT_AUTH_SECRET: "you_should_change_this_secret_key_in_production"
JWT_ACCESS_TOKEN_SECRET: "you_should_change_this_access_token_secret_key_in_production"
JWT_ACCESS_TOKEN_EXPIRATION_TIME: 86400
JWT_REFRESH_TOKEN_SECRET: "you_should_change_this_refresh_token_secret_key_in_production"
JWT_REFRESH_TOKEN_EXPIRATION_TIME: 604800
FRONTEND_BASE_URL: "http://localhost:5173"
YORKIE_API_ADDR: "http://yorkie:8080"
YORKIE_PROJECT_NAME: "default"
Expand Down
6 changes: 4 additions & 2 deletions backend/src/check/check.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ import { JwtModule } from "@nestjs/jwt";
global: true,
useFactory: async (configService: ConfigService) => {
return {
signOptions: { expiresIn: "24h" },
secret: configService.get<string>("JWT_AUTH_SECRET"),
secret: configService.get<string>("JWT_ACCESS_TOKEN_SECRET"),
signOptions: {
expiresIn: `${configService.get("JWT_ACCESS_TOKEN_EXPIRATION_TIME")}s`,
},
};
},
inject: [ConfigService],
Expand Down

0 comments on commit 34a52c3

Please sign in to comment.