Skip to content

Commit

Permalink
fix: jwt 변환 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachneee committed Nov 28, 2024
1 parent b820955 commit 82ab7b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public String createMemberToken(Long userId) {
public Long findUserIdByToken(String token) {
validateToken(token);
Map<String, Object> payload = tokenProvider.getPayload(token);
return (Long) payload.get(CLAIM_SUB);
return Long.parseLong((String) payload.get(CLAIM_SUB));
}

private void validateToken(String token) {
Expand Down

0 comments on commit 82ab7b5

Please sign in to comment.