Skip to content

로그인 DTO 수정 및 로직 처리#52

Merged
kkosang merged 3 commits intodevelopfrom
feat/login
May 8, 2025
Merged

로그인 DTO 수정 및 로직 처리#52
kkosang merged 3 commits intodevelopfrom
feat/login

Conversation

@kkosang
Copy link
Collaborator

@kkosang kkosang commented May 6, 2025

#️⃣연관된 이슈

close #50

📝작업 내용

  • 로그인 dto 변경
    -> 이메일 추가되었습니다.
  • 로그인 분기처리
    -> 회원가입 상태에 따른 분기 추가, 현재 소셜로그인, 전화번호 인증까지는 연결되어 있고 그 이후로 api 작업 완료되면 연결해야 할 것 같아요
  • JWT 인터셉터 추가
  • 애플로그인 시, 안되는 이슈 해결

스크린샷 or 작업영상

  • 옆에서 확인하면서 작업해서 영상은 생략할게요..!

💬리뷰 요구사항

  • 로그인상태는 shared, JWT 토큰 저장은 secure로 저장했습니다
    프로필 생성 네트워크 연결되면, 상태 저장하는 로직도 같이 추가되어야합니돠

@kkosang kkosang added feat Improvements or additions to documentation refactor This doesn't seem right labels May 6, 2025
@kkosang kkosang requested a review from FLU0RITE May 6, 2025 11:39
@kkosang kkosang self-assigned this May 6, 2025
Copy link
Collaborator

@FLU0RITE FLU0RITE left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!!

Comment on lines +57 to +69
<activity android:name="com.aboutyou.dart_packages.sign_in_with_apple.CallbackActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data
android:scheme="https"
android:host="chartreuse-gratis-lungfish.glitch.me"
android:pathPrefix="/callbacks/sign_in_with_apple"/>
</intent-filter>
</activity>

Copy link
Collaborator

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.

추후 리펙토링 단계에서 같이 알아보시죵~

Comment on lines +15 to +31

dio.interceptors.add(InterceptorsWrapper(
onRequest: (options, handler) async {
final token = await LoginLocalDataSource.loadToken();

if (token != null && token.isNotEmpty) {
options.headers['Authorization'] = 'Bearer $token';
}

return handler.next(options);
},
onError: (e, handler) {
return handler.next(e);
},
));

return dio;
Copy link
Collaborator

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.

키야 바로 그거야~

@kkosang
Copy link
Collaborator Author

kkosang commented May 8, 2025

아 그리고 회원가입 API 호출 시, 받은 반환값으로
saveSignUpState(반환값:상태);로 저장만 해주세요~!
@FLU0RITE

@kkosang kkosang merged commit 96eaa3f into develop May 8, 2025
1 check passed
@kkosang kkosang deleted the feat/login branch May 8, 2025 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat Improvements or additions to documentation refactor This doesn't seem right

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants