Skip to content

Commit 9e17dc3

Browse files
committed
[feat] 엑세스, 리프레시 토큰 쿠키 적용
1 parent cc5cdd2 commit 9e17dc3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/domain/auth/presentation/Auth.Controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ export class AuthController {
130130

131131
@Get('cookie/access-token')
132132
async checkAccessToken(@Req() req: Request, @Res({ passthrough: true }) res: Response) {
133-
const refreshToken = req.cookies['refresh_token'];
134-
if (!refreshToken) {
135-
throw new UnauthorizedException('Refresh token not found');
133+
const accessToken = req.cookies['access_token'];
134+
if (!accessToken) {
135+
throw new UnauthorizedException('access token not found');
136136
}
137137
return SuccessResponseDto.of(null);
138138
}

0 commit comments

Comments
 (0)