Skip to content

[TASK] AuthContext 생성 #137

Description

@hye-inA

연결된 Story/Epic

작업 내용

React Context를 사용하여 인증 상태를 전역으로 관리하는 AuthContext를 생성

구현 사항

  • src/contexts/AuthContext.jsx 파일 생성
  • AuthProvider 컴포넌트 구현
  • useAuth 커스텀 훅 구현
  • 상태 관리: user, isLoading, isAuthenticate

제공할 값

{
  user,           // 현재 로그인된 사용자 정보
  isLoading,      // 인증 확인 중 여부
  isAuthenticated,// 로그인 여부
  login,          // 로그인 함수
  logout,         // 로그아웃 함수
}

Done 기준

  • Context 생성 완료
  • Provider가 앱 전체를 감싸도록 설정
  • useAuth() 훅으로 어디서든 접근 가능

Metadata

Metadata

Assignees

No one assigned

    Labels

    task태스크 이슈

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions