I have successfully added some users' information in firestore documents.
(我已在Firestore文档中成功添加了一些用户信息。)
And I have a flutter app where the Client can enter some information after registration, I want to use that information provided to match/link the authenticated user to firestore using a field in the user document, is that possible? (我有一个Flutter应用程序,客户可以在注册后输入一些信息,我想使用提供的信息来通过用户文档中的字段将经过身份验证的用户匹配/链接到firestore,这可能吗?)
note: - the data in firestore is created before the user registration.
(注意:-Firestore中的数据是在用户注册之前创建的。)
which means the registered user uid is different from the one created in firestore (这意味着注册用户uid与在firestore中创建的用户uid不同)
I would appreciate help in this regard, what is the proper code to do so?
(在这方面,我将不胜感激,这样做的正确代码是什么?)
I'm pretty new to this.
(我对此很陌生。)
user in firestore document id
(用户在Firestore文档ID中)
user uid from firebase
(Firebase中的用户uid)
ask by Nouas translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…