Store data using Firebase Auth UID

JuneHyeok Hong·2022년 9월 23일
0

iOS_ToDo

목록 보기
5/5

이슈 1 > "UID = FireStore DocumentID"
Firebase Auth 를 사용하여 회원가입을 하게 되면 그 사용자에 대한 UID가 생성된다.
그리고 동시에 생성되는 UID 는 그 사용자 정보를 FireStore 에 저장할 때 DocumentID 로 지정하여 통일성 및 유일성을 줘야한다.

이슈 2 > "user.uid -> user.user.uid"
하지만, user.uid -> user.user.uid 로 바꿔야 문제 없었다.

It seems that Google has made some changes to Firebase Auth with the 5.0.0 update. This worked for me:

https://stackoverflow.com/questions/50317730/value-of-type-authdataresult-has-no-member-uid-error

0개의 댓글