Skip to content
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

release 1.2.1 #584

Merged
merged 15 commits into from
Nov 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#580 [feat] 리프레시 토큰 만료시 500 에러 아닌 에러 타도록 수정
  • Loading branch information
sohyundoh committed Nov 30, 2024
commit d39385a71fb4ddba901d2fb1c28c964241a27e8c
Original file line number Diff line number Diff line change
@@ -123,6 +123,10 @@ public HashMap<Long, WriterNameInfo> getJoinedRoleFromHeader(final String token)
}

public HashMap<Long, WriterNameInfo> getJoinedRoleFromJwt(final String token) {

if(!validateToken(token).equals(JwtValidationType.VALID_JWT)) {
throw new UnauthorizedException(ErrorMessage.TOKEN_INCORRECT_ERROR);
}
Claims claims = getBody(token);
Object joinedRole = claims.get(JOINED_ROLE);
HashMap<Long, WriterNameInfo> roleMap = objectMapper.convertValue(joinedRole, new TypeReference<HashMap<Long, WriterNameInfo>>() {});