Skip to content

Commit 9e21e15

Browse files
committed
fix: import 문제 해결
1 parent 90d662b commit 9e21e15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/somemore/auth/controller/UserInfoQueryController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import org.springframework.web.bind.annotation.RequestMapping;
1212
import org.springframework.web.bind.annotation.RestController;
1313

14-
import static com.somemore.global.exception.ExceptionMessage.INVALID_TOKEN;
14+
import static com.somemore.auth.jwt.exception.JwtErrorType.INVALID_TOKEN;
1515

1616
@RestController
1717
@RequiredArgsConstructor
@@ -26,7 +26,7 @@ public ApiResponse<UserInfoResponseDto> getUserInfoBySCH() {
2626
String role = authentication.getAuthorities().stream()
2727
.findFirst()
2828
.map(GrantedAuthority::getAuthority)
29-
.orElseThrow(() -> new BadRequestException(INVALID_TOKEN));
29+
.orElseThrow(() -> new BadRequestException(INVALID_TOKEN.getMessage()));
3030

3131
return ApiResponse.ok(200,
3232
new UserInfoResponseDto(userId, role),

0 commit comments

Comments
 (0)