-
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
[CHORE] 특정 값 변수 모음 클래스 병합 #176
Conversation
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.
너무나도 빠르다....
.orElseThrow(() -> new MemberException(INVALID_MEMBER)); | ||
val token = generateAccessToken(new UserAuthentication(member.getId(), null, null)); | ||
return TokenResponse.of(token); | ||
} | ||
|
||
private String getBearerToken(String token) { |
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.
메서드 뺀 거 좋은 거 같아요~
근데 "Bearer "를 뺀 나머지 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.
지피티한테 자문 한 번 구해보겠습니당!!
그 외에 추천해주실 메소드명 있을까요??
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.
@Chan531 우선 "getTokenFromBearerString"으로 메소드 변경해서 병합해두겠습니다!
더 좋은 메소드명이 있다면 언제든 공유 부탁드려요~!
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.
고생하셨습니다~~
val kid = ((JsonObject) JsonParser.parseString(header)).get(valueConfig.getKID_HEADER_KEY()); | ||
val alg = ((JsonObject) JsonParser.parseString(header)).get(valueConfig.getALG_HEADER_KEY()); |
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.
뭔가 더 좋은 걸로 결론은 낫지만 코드가 길어진 거 같아 슬프긴 하군요..
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.
ㅠ.ㅠ 계속 더 좋은 방향으로 찾아봅시당,,
✨ Related Issue
📝 기능 구현 명세
none
🐥 추가적인 언급 사항