Skip to content

Commit 3a8d11a

Browse files
committed
[FIX] 토큰 리이슈 로직 에러 수정
1 parent 69266a3 commit 3a8d11a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/com/freshman/freshmanbackend/global/auth/service/JwtReissueService.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.freshman.freshmanbackend.global.auth.service;
22

3-
import com.fasterxml.jackson.core.JsonParseException;
43
import com.freshman.freshmanbackend.global.auth.dto.Tokens;
54
import com.freshman.freshmanbackend.global.auth.util.JwtUtil;
65
import com.freshman.freshmanbackend.global.common.exception.ValidationException;
@@ -9,7 +8,6 @@
98
import lombok.RequiredArgsConstructor;
109
import org.springframework.stereotype.Service;
1110

12-
import java.io.IOException;
1311

1412
/**
1513
* JWT 재발급을 처리하는 서비스
@@ -37,7 +35,7 @@ private Tokens getNewTokens(String refreshToken, String oauth2Id, String role) {
3735
String newRefreshToken = jwtUtil.createJwt("refresh_token", oauth2Id, role, 86400000L);
3836

3937
redisRefreshTokenService.removeRefreshToken(oauth2Id);
40-
redisRefreshTokenService.saveRefreshToken(oauth2Id, newRefreshToken);
38+
redisRefreshTokenService.saveRefreshToken(newRefreshToken,oauth2Id);
4139

4240
return new Tokens(newAccessToken, newRefreshToken);
4341
}

0 commit comments

Comments
 (0)