Skip to content

Commit

Permalink
Chore: FCM 토큰 전달 변수 이름 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
pingowl committed Nov 13, 2023
1 parent 4495aad commit 42e5d13
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/igoMoney/BE/controller/AuthController.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public String appleLoginPage(ModelMap model) {
@ResponseBody
public ResponseEntity<TokenDto> getAppleUserIdToken(@RequestBody AuthAppleLoginRequest authAppleLoginRequest) throws Exception {

checkFCMToken(authAppleLoginRequest.getFCMToken());
checkFCMToken(authAppleLoginRequest.getFcmToken());
// 3. public key 요청하기 (n, e 값 받고 키 생성)
// 4. Identity Token (JWT) 검증하기
// 5. ID토큰 payload 바탕으로 회원가입
Expand All @@ -88,7 +88,7 @@ public ResponseEntity<TokenDto> 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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ public class AuthAppleLoginRequest {
private String user;
private String refresh_token;
private Long userId;
private String FCMToken;
private String fcmToken;
}
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spring:
show-sql: false
generate-ddl: true
hibernate:
ddl-auto: update
ddl-auto: create-drop
properties:
hibernate:
format_sql: true
Expand Down

0 comments on commit 42e5d13

Please sign in to comment.