Skip to content

Conversation

@hyeonda02
Copy link
Member

@hyeonda02 hyeonda02 commented Aug 16, 2025

관련 이슈

#31

작업한 내용

게스트 로그인 API를 구현하였습니다.

  • POST /api/auth/guest-login 구현
  • deviceUuid 기반 게스트 유저 생성
  • RefreshToken Redis 저장 및 기존 refresh/logout 로직 재사용 가능

UserService.createGuestUser 서비스 로직을 추가하였습니다.

  • PlanType.GUEST 부여
  • 초기 크레딧 10개 설정

구독 상태 조회(getSubscribeStatus) 기능을 수정하였습니다.

  • GUEST 플랜 문구/상태 분기 추가

PR Point 및 참고사항, 스크린샷

RDS PlanType 테이블에 GUEST 플랜 데이터를 추가해야 합니다..! (현재 추가안한상태라 해당 API 호출 시 NON_PLAN 에러 발생)
현재 구조상 게스트 유저 데이터가 계속 누적되는 상황입니다.
이 문제를 해결하기 위해 게스트 유저 데이터를 주기적으로 정리하는 배치 작업도 진행할 예정입니다.

게스트 로그인 API 호출시
스크린샷 2025-08-17 오전 4 27 56
닉네임 조회 호출시
스크린샷 2025-08-17 오전 4 27 36
게스트 로그인 후 구독상태 조회 api 호출시
스크린샷 2025-08-17 오전 4 27 18

@hyeonda02 hyeonda02 self-assigned this Aug 16, 2025
@hyeonda02 hyeonda02 added the ✨ feature New feature or request label Aug 16, 2025
@hyeonda02 hyeonda02 linked an issue Aug 16, 2025 that may be closed by this pull request
4 tasks
@hyeonda02 hyeonda02 requested a review from hardwoong August 16, 2025 23:20
@github-actions
Copy link

Test Results

1 tests   1 ✅  0s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit 4a942e0.

}

@Override
public LoginResponse guestLogin() {
Copy link
Member

Choose a reason for hiding this comment

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

UUID 기반 디바이스 식별자 사용하시는 방안 확인했습니다!
deviceUuid와 rtUuid 분리해서 생성하시는 것도 고생많으셨어용

Copy link
Member

@hardwoong hardwoong left a comment

Choose a reason for hiding this comment

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

기존 소셜 로그인 구조를 잘 활용해서 GUEST 로그인을 구현하신 것 확인했습니다 !!
토큰 관리, 예외 처리 등 고생 많으셨습니다~~

@hardwoong hardwoong merged commit c4cf1ff into develop Aug 18, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feat : 게스트 로그인 API 구현

3 participants