feat(frontend): 브라우저당 claimToken 생성 유틸리티 추가 #24
+24
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
요약
브라우저당 하나의 claimToken(UUID)을 생성하여 그룹 생성 시 소유권 식별에 사용하도록 변경
목적
기존에는 그룹을 만들 때마다 새 UUID를 생성하고 그룹별로 localStorage에 저장하고 있었습니다. 브라우저당 1개의 claimToken만 저장하도록 단순화하여, 향후 "내 그룹" 조회 및 로그인 마이그레이션에 대비합니다.
주요 변경 사항
claimToken 유틸리티
src/lib/claimToken.ts신규 추가getOrCreateClaimToken(): 브라우저당 UUID 1개 생성/재사용getClaimToken(): SSR 안전한 읽기 전용 조회그룹 생성 페이지
uuidv4()매번 호출 →getOrCreateClaimToken()재사용으로 변경테스트 체크리스트
aidol_claim_token키가 저장되는지 확인