Skip to content

Commit

Permalink
⚽Refactor #42: reiussnaceToken 반환하는 form 수정
Browse files Browse the repository at this point in the history
before: String 
토큰값

after: Map
{
    "accessToken": "토큰값"
}
  • Loading branch information
Juhyeok0202 authored Jul 30, 2023
1 parent 336be18 commit 5cdb476
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ public ResponseEntity<?> reiussnaceToken(@RequestParam("refreshToken") String re

//토큰 재발급
String access_token = userService.createAccessTokenFromRefreshToken(refreshToken);
return ResponseEntity.ok(access_token);
Map<String,Object> accessToken = new HashMap<>();
accessToken.put("accessToken",access_token);
return ResponseEntity.ok(accessToken);
} catch (Exception e) {
// RefreshToken만료
throw new CustomException(ErrorCode.INVALID_REFRESH_TOKEN);
Expand Down

0 comments on commit 5cdb476

Please sign in to comment.