Skip to content

Commit

Permalink
bugfix/#55/admin access 토큰 시크릿 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
gwgw123 committed Jan 8, 2025
1 parent 3bface4 commit 5fc0959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/auth/jwt/jwt.startegy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class AdminAccessTokenStrategy extends PassportStrategy(
]),
// 시크릿키로 검증

secretOrKey: configService.get<string>('ACCESS_SECRET'),
secretOrKey: configService.get<string>('ADMIN_ACCESS_SECRET'),
// validate 메서드로 request 객체 전달
passReqToCallback: true,
// 만료된 토큰도 검증
Expand Down
2 changes: 1 addition & 1 deletion src/auth/services/token.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class TokenService {

try {
const accessToken = this.jwtService.sign(payload, {
secret: this.configService.get<string>('ACCESS_SECRET'),
secret: this.configService.get<string>('ACCESS_ADMIN_SECRET'),
expiresIn: Number(
this.configService.get<string>('ACCESS_EXPIRATION_TIME'),
),
Expand Down

0 comments on commit 5fc0959

Please sign in to comment.