From 48fff9f5d4fae575f43875835376e69cfafd63b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Wed, 28 Sep 2022 17:02:23 +0900 Subject: [PATCH] nestjs_auth... --- src/auth/auth.controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.ts index 3390c96..485ece6 100644 --- a/src/auth/auth.controller.ts +++ b/src/auth/auth.controller.ts @@ -17,15 +17,15 @@ export class AuthController { return await this.authService.login(req.user) } - //jwt.strategy의 validate에서 true인경우 넘어옴 + //jwt.accesstoken.stragy의 validate에서 true인경우 넘어옴 @UseGuards(JwtAccessTokenGuard) @Get('profile') async profile(@Request() req) { return req.user } - //jwt.strategy의 validate에서 true인경우 넘어옴 - @UseGuards(JwtRefreshTokenGuard) + //jwt.refreshtoken.stragy의 validate에서 true인경우 넘어옴 + //@UseGuards(JwtRefreshTokenGuard) @Post('reload') async reload(@Request() req) { return await this.authService.reload(req.user)