Skip to content

Commit

Permalink
fix : login response 파라미터 수정
Browse files Browse the repository at this point in the history
Token -> Token, langauge
  • Loading branch information
KangJiSseok committed Jun 20, 2024
1 parent bef551a commit 98dee56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
public class TokenMessage {
String AccessToken;
String RefreshToken;
String language;

public TokenMessage(String accessToken, String refreshToken) {
public TokenMessage(String accessToken, String refreshToken, String language) {
AccessToken = accessToken;
RefreshToken = refreshToken;
this.language = language;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ public TokenMessage login(LoginRequest request) {
if (!user.isEmpty()) {
Member member = user.get();
member.setFirebaseToken(request.getToken());

return handleExistingMemberLogin(user.get());
} else {
throw new LoginFailException();
Expand Down Expand Up @@ -215,6 +214,6 @@ private TokenMessage handleExistingMemberLogin(Member user) {
String accessToken = tokenProvider.createAccessToken(user.getEmail());
String refreshToken = tokenProvider.createRefreshToken(user.getEmail());

return new TokenMessage(accessToken, refreshToken);
return new TokenMessage(accessToken, refreshToken,user.getLanguage());
}
}

0 comments on commit 98dee56

Please sign in to comment.