-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#61] refreshToken 보내면 새로운 token 들 반환 #62
Conversation
src/login/login.module.ts
Outdated
controllers: [LoginController], | ||
providers: [LoginService, JwtStrategy], | ||
}) | ||
export class LoginModule {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auth module에 합치는게 더 낫지 않을까 생각됩니다. 중복되는 코드도 많고 그래서요
}); | ||
} catch (e) { | ||
if (e instanceof TokenExpiredError) { | ||
throw new UnauthorizedException(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
에러 핸들링이 잘 되어네요!
@@ -34,4 +34,9 @@ export class AuthController { | |||
) { | |||
return await this.authService.checkSejongStudent(body, userId); | |||
} | |||
|
|||
@Post('refresh') | |||
public refreshTokens(@Body('refreshToken') refreshToken: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이렇게 하면 refresh token으로 숫자가 오면 어떻게 되나요? 400이 나오나요 500이 나오나요?
이슈
고민한 내용