From 33598d41f465eb0a22ff2c61a533ecbbb07cfcff Mon Sep 17 00:00:00 2001 From: YONGWOOK CHOI <60510921+CYY1007@users.noreply.github.com> Date: Fri, 16 Feb 2024 15:32:22 +0900 Subject: [PATCH] =?UTF-8?q?:bug:=20Fix=20:=20accessToken=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=EB=A5=BC=20=EC=9C=84=ED=95=9C=20=EC=9C=A0?= =?UTF-8?q?=ED=9A=A8=EC=8B=9C=EA=B0=84=20=EC=9E=84=EC=8B=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20(#182)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/briefingapi/member/presentation/MemberApi.java | 7 +++++++ Briefing-Api/src/main/resources/application.yml | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Briefing-Api/src/main/java/com/example/briefingapi/member/presentation/MemberApi.java b/Briefing-Api/src/main/java/com/example/briefingapi/member/presentation/MemberApi.java index 33fa2d7..8aa05ab 100644 --- a/Briefing-Api/src/main/java/com/example/briefingapi/member/presentation/MemberApi.java +++ b/Briefing-Api/src/main/java/com/example/briefingapi/member/presentation/MemberApi.java @@ -45,6 +45,13 @@ public CommonResponse testGenerateToken() { @Operation(summary = "02-01 Member\uD83D\uDC64 소셜 로그인 V1", description = "구글, 애플 소셜로그인 API입니다.") @PostMapping("/members/auth/{socialType}") + @ApiResponses({ + @ApiResponse(responseCode = "1000", description = "OK, 성공"), + @ApiResponse( + responseCode = "COMMON001", + description = "request body에 담길 값이 이상함, result를 확인해주세요!", + content = @Content(schema = @Schema(implementation = CommonResponse.class))), + }) public CommonResponse login( @Parameter(description = "소셜로그인 종류", example = "google") @PathVariable final SocialType socialType, diff --git a/Briefing-Api/src/main/resources/application.yml b/Briefing-Api/src/main/resources/application.yml index bb1eaee..5167afd 100644 --- a/Briefing-Api/src/main/resources/application.yml +++ b/Briefing-Api/src/main/resources/application.yml @@ -119,7 +119,7 @@ jwt: secret: ${JWT_SECRET} # secret : ${JWT_SECRET} authorities-key: authoritiesKey - access-token-validity-in-seconds: 1210000000 # 30 m + access-token-validity-in-seconds: 30 # 30 m refresh-token-validity-in-seconds: 1210000000 # 14 d openai: @@ -159,7 +159,7 @@ jwt: secret: ${JWT_SECRET} # secret : ${JWT_SECRET} authorities-key: authoritiesKey - access-token-validity-in-seconds: 1210000000 # 30 m + access-token-validity-in-seconds: 1800 # 30 m refresh-token-validity-in-seconds: 1210000000 # 14 d openai: