Skip to content

Conversation

@venise5224
Copy link
Collaborator

작업 내용

  1. AutoStore 구현 :
  • user, isLoggedIn 상태 / login, SNSLogin, logout 액션함수
  • persist 미들웨어로 상태값 로컬스토리지 (auth-storage) 저장
  • login 액션함수 로직 : 로그인 API -> 유저 데이터 조회 API -> 상태값 변화
  1. api/users 구현 : 로그인 후 유저 데이터 조회를 위한 프록시 서버 구축

  2. login 함수 적용 / 헤더 적용

@venise5224 venise5224 self-assigned this Nov 9, 2024
@venise5224 venise5224 linked an issue Nov 9, 2024 that may be closed by this pull request
@junjeeong
Copy link
Collaborator

고생하셨어여

Copy link
Contributor

@mungyun mungyun left a comment

Choose a reason for hiding this comment

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

Zustand 깔끔하게 사용해주셨네요 고생하셨습니다~~

Comment on lines 96 to 98
} else {
const data = await postSignIn({ email, password });
const data = await login({ email, password });

Copy link
Contributor

Choose a reason for hiding this comment

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

바로 교체해주셨군요 👍

@venise5224 venise5224 merged commit e5bbacb into develop Nov 9, 2024
1 check 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.

AuthStore 구현

4 participants