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