From 42e5d1346911fd1eb5f1b9cf2fbeb38b0f538fd7 Mon Sep 17 00:00:00 2001 From: BK Date: Mon, 13 Nov 2023 20:50:44 +0900 Subject: [PATCH] =?UTF-8?q?Chore:=20FCM=20=ED=86=A0=ED=81=B0=20=EC=A0=84?= =?UTF-8?q?=EB=8B=AC=20=EB=B3=80=EC=88=98=20=EC=9D=B4=EB=A6=84=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/igoMoney/BE/controller/AuthController.java | 4 ++-- .../java/igoMoney/BE/dto/request/AuthAppleLoginRequest.java | 2 +- src/main/resources/application.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/igoMoney/BE/controller/AuthController.java b/src/main/java/igoMoney/BE/controller/AuthController.java index bc7a778..7aa11bc 100644 --- a/src/main/java/igoMoney/BE/controller/AuthController.java +++ b/src/main/java/igoMoney/BE/controller/AuthController.java @@ -79,7 +79,7 @@ public String appleLoginPage(ModelMap model) { @ResponseBody public ResponseEntity getAppleUserIdToken(@RequestBody AuthAppleLoginRequest authAppleLoginRequest) throws Exception { - checkFCMToken(authAppleLoginRequest.getFCMToken()); + checkFCMToken(authAppleLoginRequest.getFcmToken()); // 3. public key 요청하기 (n, e 값 받고 키 생성) // 4. Identity Token (JWT) 검증하기 // 5. ID토큰 payload 바탕으로 회원가입 @@ -88,7 +88,7 @@ public ResponseEntity getAppleUserIdToken(@RequestBody AuthAppleLoginR // 6. 서버에서 직접 JWT 토큰 발급하기 (access & refresh token) TokenDto response = authService.AppleSignUp(subNemail); // sub, email refreshTokenService.saveRefreshToken(response); - fcmTokenService.saveToken(response.getUserId(), authAppleLoginRequest.getFCMToken()); + fcmTokenService.saveToken(response.getUserId(), authAppleLoginRequest.getFcmToken()); return ResponseEntity.status(HttpStatus.OK).body(response); } diff --git a/src/main/java/igoMoney/BE/dto/request/AuthAppleLoginRequest.java b/src/main/java/igoMoney/BE/dto/request/AuthAppleLoginRequest.java index e8697ad..bbcc7eb 100644 --- a/src/main/java/igoMoney/BE/dto/request/AuthAppleLoginRequest.java +++ b/src/main/java/igoMoney/BE/dto/request/AuthAppleLoginRequest.java @@ -15,5 +15,5 @@ public class AuthAppleLoginRequest { private String user; private String refresh_token; private Long userId; - private String FCMToken; + private String fcmToken; } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index b5cd9f3..71b47a3 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -16,7 +16,7 @@ spring: show-sql: false generate-ddl: true hibernate: - ddl-auto: update + ddl-auto: create-drop properties: hibernate: format_sql: true