Skip to content

Conversation

@simpack0513
Copy link

No description provided.

@@ -0,0 +1,141 @@
---
layout: post
title: "Flutter로 firebase에 휴대폰, 이메일 계정 연동하기"
Copy link

Choose a reason for hiding this comment

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

[Nit] 통일성 있게 firebase도 Firebase로 표현하시는 거 어떠신가요?

Copy link
Author

Choose a reason for hiding this comment

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

아 넵 좋습니다 수정하겠습니다 !

# Firebase Auth

파이어베이스는 여러 인증 수단을 제공하고 있습니다. 기본적으로는 이메일과 비밀번호를 이용한 인증이지만 휴대폰 인증, 구글 계정, 소셜 로그인도 지원하고 있습니다. <br><br>
**이메일과 비밀번호를 이용해 회원가입 한 사용자가 휴대전화으로도 로그인 하려면 어떻게 해야 할까요?** <br><br>
Copy link

Choose a reason for hiding this comment

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

어법 수정이 필요해보입니다.

회원가입 한 -> 회원가입한
휴대전화으로도 -> 휴대전화로도
로그인 하려면 -> 로그인하려면

Copy link
Author

Choose a reason for hiding this comment

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

지적 감사합니다 반영하겠습니다 !


파이어베이스는 여러 인증 수단을 제공하고 있습니다. 기본적으로는 이메일과 비밀번호를 이용한 인증이지만 휴대폰 인증, 구글 계정, 소셜 로그인도 지원하고 있습니다. <br><br>
**이메일과 비밀번호를 이용해 회원가입 한 사용자가 휴대전화으로도 로그인 하려면 어떻게 해야 할까요?** <br><br>
파이어베이스에서는 여러 인증 방법으로 회원을 각각 만들면 같은 개인 UID가 부여되지 않으므로, 반드시 여러 인증 공급자를 계정에 연결하는 과정이 필요합니다.<br><br>
Copy link

Choose a reason for hiding this comment

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

표현의 통일이 필요해보입니다.

firebase, Firebase, 파이어베이스

Copy link
Author

Choose a reason for hiding this comment

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

Firebase로 통일하겠습니다 감사합니다 :)

<hr>

다음 상황을 바탕으로 대략적인 과정을 설명하겠습니다. <br><br>
> 첫 회원가입을 하고 있는 사용자가 이메일과 비밀번호를 입력하고 휴대전화 문자 인증을 받아 회원가입을 마치는 상황입니다. 사용자 정보 입력 순서는 상관없지만 이번 상황에선 이메일과 비밀번호를 먼저 받는다고 하겠습니다. 이후 사용자는 이메일/비밀번호 또는 휴대폰 문자 인증으로 로그인이 가능하고, 파이어베이스는 이 둘 중 어느 방법으로 로그인 해도 동일한 사용자임을 인식할 것입니다.
Copy link

Choose a reason for hiding this comment

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

어법 수정 및 파이어베이스 표현의 통일성 지켜주시길 바랍니다.

스크린샷 2022-11-22 오전 1 04 17

Copy link
Author

Choose a reason for hiding this comment

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

넵 수정하도록 하겠습니다 !


<hr>

앱 사용률을 높이기 위해서 사용자에게 여러 로그인 수단을 제공하는 것은 중요합니다. `FIrebase`는 다양한 인증 수단을 제공함과 이를 간편하게 연동할 수 있어 개발에 큰 도움이 되실 겁니다. 비록 공식 문서에도 나와 있는 내용이지만 친절하지 않아 이렇게 포스팅을 해보았는데 하면서 더 이해가 되어 좋았습니다.
Copy link

Choose a reason for hiding this comment

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

어법/표현 수정이 필요해보입니다.

FIrebase -> Firebase
e.g. 다양한 인증 수단을 제공함과 이를 간편하게 -> 다양한 인증 수단을 제공함과 동시에, 이를 계정과 간편하게

Copy link
Author

Choose a reason for hiding this comment

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

마무리 하며 부분은 새로 한번 작성해보겠습니다 말씀 감사합니다 !

Copy link

@iju1633 iju1633 left a comment

Choose a reason for hiding this comment

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

데일리 스크럼 때 나온 내용들을 이렇게 정리해주셔서 감사합니다. 덕분에 firebase를 활요한 인증에 대해 더욱 잘 알게 되었습니다 👍

@iju1633 iju1633 added ✅ 리뷰 완료 한 명 이상이 리뷰를 완료했을 때 🔨 수정 요청 리뷰 과정 중 수정 사항이 생겼을 때 and removed 🙋‍♂️🙋‍♀️ 리뷰 요청 PR 리뷰를 요청합니다~ labels Nov 21, 2022
Copy link

@hfjxjjd123 hfjxjjd123 left a comment

Choose a reason for hiding this comment

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

몰랐던 Firebase 사용자인증에 대한 매커니즘을 알 수 있어서 좋았습니다!!

Comment on lines 34 to 35
3. 인증코드와 인증ID를 이용해 Credential 개체를 가져옵니다.
4. Credential 객체를 linkWithCredential() 메소드로 넘겨 휴대전화 인증방법을 등록합니다.

Choose a reason for hiding this comment

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

글을 읽고 Credential 객체도 여러 종류가 있다고 이해했습니다.
아직 Credential에 대한 이야기가 잘 안 나오는 부분이긴 하지만
어떤 Credential객체가 가져와지고 넘겨지는지 명시되면 이해하기 좀 더 편할거 같습니다!(예: PhoneCredential객체 or 핸드폰 관련 Credential 객체~)

Copy link
Author

Choose a reason for hiding this comment

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

의견 감사합니다 아래 글의 방향으로 수정해보도록 하겠습니다 ! Credential 객체를 설명하는 칸을 따로 만들어 보겠습니다

Comment on lines 34 to 35
3. 인증코드와 인증ID를 이용해 Credential 개체를 가져옵니다.
4. Credential 객체를 linkWithCredential() 메소드로 넘겨 휴대전화 인증방법을 등록합니다.

Choose a reason for hiding this comment

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

아니면 글 전반적으로 Credential 객체에 대한 간단한 정보를 추가해서
인증마다 다른 타입의 Credential 객체가 대응되는데, 그 다른 Credential객체정보를 linkWithCredential이라는 메소드로 합침으로써 여러 인증수단이 한 사용자를 가리키게 된다~ 는 식의 내용을 추가해도 좋을 것 같습니다!

Comment on lines 114 to 116
만약 이메일과 연동하지 않고 휴대전화 인증으로 단독 계정을 만들고 싶다면, 이후 `signInWithCredential` 메소드에 Credential 객체를 넘기면 됩니다. <br>

마찬가지로 휴대전화가 아닌 구글 아이디 인증과 같은 다른 인증 방법을 사용할 때도, Credential 개체까지만 받고 `signInWithCredential` 메소드를 실행하기 직전 상황까지만 만들면 연동 준비가 끝납니다.

Choose a reason for hiding this comment

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

Credential 객체라는 표현과 Credential 개체라는 표현이 혼용되어 있는데 혹시 두 개념이 구분되나요?

Copy link
Author

Choose a reason for hiding this comment

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

공식 문서의 내용을 참고하여 작성했으나, 객체와 개체를 검색해보니 프로그래밍 개념으로는 객체가 더 정확해보여 객체로 통일하겠습니다 ! 의견 감사드립니다 :)

Copy link

@hfjxjjd123 hfjxjjd123 left a comment

Choose a reason for hiding this comment

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

ab

Copy link

@hfjxjjd123 hfjxjjd123 left a comment

Choose a reason for hiding this comment

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

a

iju1633
iju1633 previously approved these changes Jan 21, 2023
인트로 파일 교체
@SSUHYUNKIM SSUHYUNKIM added 💯 최종 완료 모든 수정과 리뷰가 끝난 후 merge를 기다릴 때 and removed ✅ 리뷰 완료 한 명 이상이 리뷰를 완료했을 때 🔨 수정 요청 리뷰 과정 중 수정 사항이 생겼을 때 labels Feb 7, 2023
@SSUHYUNKIM SSUHYUNKIM merged commit bd08492 into GDSC-University-of-Seoul:master Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💯 최종 완료 모든 수정과 리뷰가 끝난 후 merge를 기다릴 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants