Skip to content

[Feat/add info to auth response]#6

Merged
ekgns33 merged 2 commits intomainfrom
feat/add-info-to-auth-response
Mar 27, 2025
Merged

[Feat/add info to auth response]#6
ekgns33 merged 2 commits intomainfrom
feat/add-info-to-auth-response

Conversation

@ekgns33
Copy link
Contributor

@ekgns33 ekgns33 commented Mar 27, 2025

작업내역

  • 로그인, 회원가입시 유저 정보 반환 로직 추가
  • Response DTO를 유즈케이스에서 반환하도록 로직 수정

@ekgns33 ekgns33 requested a review from Copilot March 27, 2025 02:06
@ekgns33 ekgns33 self-assigned this Mar 27, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances authentication by including additional user information in the auth responses and updating the response DTOs for login and signup operations. Key changes include:

  • Updating login and signup methods to return richer responses with user nickname and image URL.
  • Removing the old SignupUserInfo DTO and introducing SignupUserResponse.
  • Adjusting tests to extract the access token from a nested token_pair field.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/test/java/org/runimo/runimo/user/api/UserItemAcceptanceTest.java Updates the test to extract the access token from payload.token_pair
src/main/java/org/runimo/runimo/user/service/usecases/UserOAuthUsecaseImpl.java Modifies login and signup methods to wrap responses in new DTOs
src/main/java/org/runimo/runimo/user/service/usecases/UserOAuthUsecase.java Updates interface return types to reflect new DTOs
src/main/java/org/runimo/runimo/user/service/dtos/AuthResponse.java Changes AuthResponse to include nickname and imgUrl
src/main/java/org/runimo/runimo/user/service/dtos/SignupUserResponse.java Introduces a new DTO carrying additional user information
src/main/java/org/runimo/runimo/user/controller/UserItemController.java Adds a new endpoint for using items
src/main/java/org/runimo/runimo/user/controller/UserController.java Updates endpoints to use new auth response DTOs

@ekgns33 ekgns33 merged commit 1ddd0d6 into main Mar 27, 2025
1 check passed
@ekgns33 ekgns33 deleted the feat/add-info-to-auth-response branch March 27, 2025 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants