Skip to content
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

Feat/#195 auth user provider #199

Merged
merged 16 commits into from
May 18, 2024
Merged

Feat/#195 auth user provider #199

merged 16 commits into from
May 18, 2024

Conversation

SeongJongHo
Copy link
Collaborator

:: 최근 작업 주제 (하나 이상의 주제를 선택해주세요.)

  • 기능 추가
  • 리뷰 반영
  • 리팩토링
  • 버그 수정
  • 컨벤션 수정

:: 구현 목표 (해당 브랜치에서 구현하고자 하는 하나의 목표를 설정합니다.)

  • 로그인한 회원 email 전역상태로 관리

:: 구현 사항 설명 (작업한 내용을 상세하게 기록합니다.)

  1. User Provider 최상위 위젯에 주입
  2. �SignIn 시에 UserProvider email 수정

:: 성장 포인트 (해당 기능을 구현하며 고민했던 사항이나 새로 알게된 부분, 어려웠던 점 등을 작성합니다.)


:: 기타 질문 및 특이 사항

관련된 로직중 디버깅이 들어가면서 코드 수정이 많이 되었습니다.

  1. AuthRepository => 재귀 리스너 제거
  2. FireBaseService => 리스너 한곳으로 캡슐화 및 등록
    2_1. => user 프로퍼티 및 필드 추가
  3. saveUserProfile => createdAt 직렬화 방식 toUserProfileDto 탑레벨 함수 적용

@SeongJongHo SeongJongHo added ✨ Feature 기능 개발 [PR] 리뷰요청 리뷰 요청 드립니다. labels May 17, 2024
@SeongJongHo SeongJongHo self-assigned this May 17, 2024
@SeongJongHo SeongJongHo linked an issue May 17, 2024 that may be closed by this pull request
1 task
Copy link
Collaborator

@NalaJang NalaJang left a comment

Choose a reason for hiding this comment

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

LGTM👍🏻

lib/main.dart Outdated
routerConfig: router,
);
return Provider(
create: (context) => getIt<UserProvider>(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

그럼 유저 id 사용하려면 provider를 불러와서 사용하면 될까요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@NalaJang email만 사용 가능합니다!

buttonText: '둘러보기',
onPressedCheck: () => RouterStatic.goToHome(context),
buttonText: '확인',
onPressedCheck: () => RouterStatic.goToSignIn(context),
Copy link
Contributor

Choose a reason for hiding this comment

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

회원가입 후 로그인 화면으로 이동하나요? 바로 로그인 처리하는 걸로 알고있었는데..

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@somarok 리뷰 반영하여 수정했습니다

Copy link
Contributor

@somarok somarok left a comment

Choose a reason for hiding this comment

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

회원가입 후 로그인 처리 부분에 대한 코멘트 남겼습니다~

lib/main.dart Outdated
routerConfig: router,
);
return Provider(
create: (context) => getIt<UserProvider>(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

router.dart에서 주입하도록 해서, 일괄적으로 provider를 관리할 수 있도록 하는게 나을 것 같습니다

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@hoogom88 리뷰 반영하여 수정했습니다!

Copy link
Collaborator

@hoogom88 hoogom88 left a comment

Choose a reason for hiding this comment

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

LGTM👍

@SeongJongHo SeongJongHo merged commit d83ebd3 into dev May 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 기능 개발 [PR] 리뷰요청 리뷰 요청 드립니다.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Auth] User Provider
4 participants