Skip to content

Commit

Permalink
Merge branch 'dev' into feat/#24
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-seong authored Jan 31, 2024
2 parents 29de647 + b6f4c9c commit 6b851fb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class LoginController {




/*
테스트용 API, CORS 때문에 직접 호출하지 않고 redirect
*/
Expand All @@ -59,6 +60,7 @@ public ResponseEntity<String> getAccessToken(@RequestParam(name = "code") String
TokenResponse tokenResponse = kakaoLoginService.getAccessTokenByCode(code);
return ResponseEntity.ok("accessToken="+ tokenResponse.getAccessToken() +
"idToken=" + tokenResponse.getIdToken());

}
/*
1. ID 토큰 유효성 검증
Expand Down Expand Up @@ -123,6 +125,7 @@ public ApiResponse<?> validateAppleToken(HttpServletResponse response, @RequestB
return ApiResponse.onSuccess(UserConverter.toLoginDTO(user));
}


@GetMapping("/token/validate")
public ApiResponse<String> validateServerToken(@RequestParam(name = "code") String code){
TokenResponse tokenResponse = kakaoLoginService.getAccessTokenByCode(code);
Expand Down

0 comments on commit 6b851fb

Please sign in to comment.