Skip to content

Commit e68191c

Browse files
committed
feat/OPS-324 : 테스트 로직 일부 수정. #2
1 parent c273da6 commit e68191c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/main/java/org/tuna/zoopzoop/backend/domain/auth/controller/ApiV1AuthController.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,19 @@ public Map<String, Object> getAttributesFromCode(String code) {
166166
.bodyToMono(KakaoUserInfoResponse.class)
167167
.block();
168168

169+
Map<String, Object> kakaoAccountMap = new HashMap<>();
170+
171+
Map<String, Object> profileMap = new HashMap<>();
172+
profileMap.put("nickname", userInfo.kakao_account().profile().nickname());
173+
profileMap.put("profile_image_url", userInfo.kakao_account().profile().profile_image_url());
174+
175+
kakaoAccountMap.put("profile", profileMap);
176+
177+
// 4. attributes Map 생성
169178
Map<String, Object> attributes = new HashMap<>();
170179
attributes.put("id", userInfo.id());
171-
attributes.put("kakao_account", userInfo.kakao_account());
180+
attributes.put("kakao_account", kakaoAccountMap);
181+
172182
return attributes;
173183
}
174184
}

0 commit comments

Comments
 (0)