-
Notifications
You must be signed in to change notification settings - Fork 4
로그인·회원가입·내 프로필(상세/등록) 구현 & authProvider 리팩토링 (세션 만료/리다이렉트 옵션 포함) #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
@jeschun is attempting to deploy a commit to the projects Team on Vercel. A member of the Team first needs to authorize it. |
This was
linked to
issues
Oct 15, 2025
Closed
Closed
Closed
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
sohyun0
approved these changes
Oct 16, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
📝 작업 개요 (필수)
통합 구축: 로그인/회원가입, authProvider, 내 프로필(상세·등록) 전체 흐름 일괄 구현.
로그인 페이지: 제출/에러 모달 처리 + blur 검증(이메일 형식, 비번 8자 이상).
회원가입 페이지: 기본 제출 플로우 및 검증/에러 처리 구성.
프로필 페이지: 상세 보기와 등록·수정 + 저장 공통 로직 + 페이지 내부 로그인 가드.
인증 인프라: authProvider 리팩토링(axios/스토리지)·세션 만료 저장/검사·logout({redirectTo})·useAuth() API 일원화.
✨ 작업 내용 (필수)
📸 스크린샷
🧐 해결해야 하는 문제
🤔 리뷰어 확인 필요 사항
LocalStorage 키: thejulge_token, thejulge_user_id (만료 키: thejulge_expires 제안)
브라우저에서만 Authorization: Bearer 자동 첨부 (POST /token, /users 제외)
logout({ redirectTo }) 옵션 처리 방식 (기본 /, 사용자 지정 경로 허용)
로그인 가드 처리 위치: 라우트 수준 vs 페이지 내부 가드 → 현재는 페이지 내부 가드 적용
nav.tsx 에서
onClick={logout}을이렇게 고쳤습니다 리다이렉트 때문에 오류로 떠서 저렇게 바꿨습니다
🔗 관련 이슈
🛠️ 후속 작업
✅ 체크리스트 (필수)