diff --git a/src/main/java/com/ALGo/ALGo_server/authentication/Dto/TokenResponseDto.java b/src/main/java/com/ALGo/ALGo_server/authentication/Dto/TokenResponseDto.java index 3d0c2ca..c0802cf 100644 --- a/src/main/java/com/ALGo/ALGo_server/authentication/Dto/TokenResponseDto.java +++ b/src/main/java/com/ALGo/ALGo_server/authentication/Dto/TokenResponseDto.java @@ -13,4 +13,5 @@ public class TokenResponseDto { private String grantType; private String jwtAccessToken; private String jwtRefreshToken; + private String language; } diff --git a/src/main/java/com/ALGo/ALGo_server/authentication/Service/UserService.java b/src/main/java/com/ALGo/ALGo_server/authentication/Service/UserService.java index e6378c2..ab49b9d 100644 --- a/src/main/java/com/ALGo/ALGo_server/authentication/Service/UserService.java +++ b/src/main/java/com/ALGo/ALGo_server/authentication/Service/UserService.java @@ -52,6 +52,7 @@ public TokenResponseDto login(LoginRequestDto requestDto){ return TokenResponseDto.builder() .grantType("Bearer") + .language(user.getLanguage()) .jwtAccessToken(accessToken) .jwtRefreshToken(refreshToken) .build();