Skip to content

Commit ca4892b

Browse files
committed
fix: 토큰 디코드 로직 수정
1 parent 28ccbe8 commit ca4892b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/java/bitnagil/bitnagil_backend/auth/jwt

src/main/java/bitnagil/bitnagil_backend/auth/jwt/JwtUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public Authentication getAuthentication(String accessToken) {
108108
// RefreshToken 혹은 AccessToken으로 인증된 유효 User 조회
109109
public User findValidUserByRefreshTokenOrAccessToken(String token) {
110110

111-
Long userId = Long.valueOf(parseClaims(token).get("userId", String.class));
111+
Long userId = Long.valueOf(parseClaims(token).get("userId", Integer.class));
112112

113113
return userRepository
114114
.findByUserId(userId)

0 commit comments

Comments
 (0)