Skip to content

Commit

Permalink
Merge pull request #35 from DDD-Community/fix/30-issue_refresh_token
Browse files Browse the repository at this point in the history
fix: update success code
  • Loading branch information
minaamim authored Dec 21, 2023
2 parents 56cc8e8 + fa90b81 commit 349c52f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ public enum SuccessCode {
LOGIN_SUCCESS(200, "200", "LOGIN SUCCESS"),
LOGOUT_SUCCESS(200, "200", "LOGOUT SUCCESS"),
SIGNOUT_SUCCESS(200, "200", "SIGN OUT SUCCESS"),
REISSUE_SUCCESS(200, "200", "REISSUE SUCCESS"),
// 삽입 성공 코드 (HTTP Response: 201 Created)
INSERT_SUCCESS(201, "201", "INSERT SUCCESS"),
// 수정 성공 코드 (HTTP Response: 201 Created)
UPDATE_SUCCESS(204, "204", "UPDATE SUCCESS"),

; // End

/**
* ******************************* Success Code Constructor ***************************************
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public ResponseEntity<ApiResponse<AuthTokens>> loginKakao(@RequestBody KakaoLogi
@Operation(summary = "reissue refresh token")
@PostMapping("/refresh")
public ResponseEntity<ApiResponse<AuthTokens>> reissue(@Valid @RequestBody ReissueTokenReq request) {
return ApiResponse.success(SuccessCode.UPDATE_SUCCESS, tokenService.reissueToken(request));
return ApiResponse.success(SuccessCode.REISSUE_SUCCESS, tokenService.reissueToken(request));
}

@Operation(summary = "로그아웃")
Expand Down

0 comments on commit 349c52f

Please sign in to comment.