-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] 소셜 로그인 API 관련 수정 작업 (fcm Token 추가) (#48)
* [feat] #46 add fcmToken in userInfo entity and update when signin * [feat] #46 modify response type to add user name
- Loading branch information
Showing
5 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
|
||
public record UserLoginDto( | ||
@NotNull | ||
Provider provider | ||
Provider provider, | ||
@NotNull | ||
String fcmToken | ||
) { | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/org/kkumulkkum/server/dto/auth/response/UserTokenDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.kkumulkkum.server.dto.auth.response; | ||
|
||
import org.kkumulkkum.server.domain.UserInfo; | ||
|
||
public record UserTokenDto( | ||
String name, | ||
JwtTokenDto jwtTokenDto | ||
) { | ||
public static UserTokenDto of(UserInfo userInfo, JwtTokenDto tokens) { | ||
return new UserTokenDto( | ||
userInfo.getName(), | ||
tokens | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters