Skip to content

Feature/auth routing#21

Merged
Jaeho-Site merged 10 commits into
devfrom
feature/auth-routing
May 16, 2026
Merged

Feature/auth routing#21
Jaeho-Site merged 10 commits into
devfrom
feature/auth-routing

Conversation

@Jaeho-Site

Copy link
Copy Markdown
Contributor

변경 사항

📌 작업 목적

구현된 인증 로직을 전역 라우터와 앱 최상단에 연결하여 전체 인증 흐름을 완성합니다.

🛠️ 주요 변경 사항

  • 페이지 쉘 구성: Login, Workspace, AuthCallback 페이지 껍데기(Shell) 추가
  • 라우팅 세팅: app/router/index.tsx에 라우트 트리 정의 및 RequireAuth 가드 적용
  • App 통합: app/providersAuthProvider를 주입하고 main.tsx 진입점에 연결
  • 위젯 연동: widgets/site-nav 사이드 네비게이션에 로그인 상태 연동

현재 파악된 문제

  • 홈페이지 컴포넌트 누락(어디선가 merge,분기 잘못되어서 widgets들이 누락됨 -> fix 브랜치로 단일 커밋 복구 예정

@vercel

vercel Bot commented May 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stackup Ready Ready Preview, Comment May 16, 2026 0:06am

className="w-full"
onError={(err) => {
if (isApiError(err)) {
setError(err.message)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

우선 백엔드에서 던진 메세지를 그대로 전달하는군요
백엔드에서 어떤 메세지를 던지는지도 확인해봐야겠네요

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

MVP구현단계에선 빠른 출시,개발이 중요해서 콘솔로그나 서비스가 터지지않는 에러처리를 하고 있지만, 여유가 생긴다면 logger를 도입해서 로깅시스템과 대시보드 등을 구축하면 좋을 것 같습니다.
백엔드는 당연히 해야하는게 맞고, 프론트도 하면 좋을 것 같아요.

</p>
<h1
className="mt-4 font-heading font-extrabold text-sage-900 leading-[1.05]"
style={{ fontSize: 'clamp(36px, 5vw, 52px)', letterSpacing: '-0.5px' }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

이 부분은 tailwind 대신 인라인 스타일을 쓰셨군요
임시라면 상관없겠지만 하나로 통일하는게 좋아보입니다.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

이 부분은 애매하긴 하네요. 사실 taliwind의 한계때문에 이렇게 써서 tailwind로 사용하려면 토큰화 시켜야하긴하는데 이부분은 좀 더 생각해보겠습니다.

const { user, logout } = useAuth()
const [loggingOut, setLoggingOut] = useState(false)

const handleLogout = async () => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

handleLogout을 여러 곳에서 사용하니 커스텀 훅으로 빼면 깔끔하겠네요

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

클린코드 좋네요. 커스텀 훅으로 분리했습니다.
한 가지 더 고려한 부분은 useAuth에 합치지 않고 전역 상태와 Mutation 상태의 책임을 분리하는 방향으로 리팩토링했습니다.

@Jaeho-Site Jaeho-Site changed the base branch from feature/auth-core-logic to dev May 16, 2026 12:21
@Jaeho-Site Jaeho-Site merged commit 0dfea7b into dev May 16, 2026
2 checks passed
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