File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/com/somemore/auth/controller Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1111import org .springframework .web .bind .annotation .RequestMapping ;
1212import 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 ),
You can’t perform that action at this time.
0 commit comments