![](/img/trans.png)
[英]Flutter routing with Firebase Auth and ChangeNotifierProvider
[英]Firebase Auth transactions with flutter
如何使用顫振在此代碼中進行交易。
FirebaseUser user = await FirebaseAuth.instance.currentUser();
UserUpdateInfo userUpdateInfo = new UserUpdateInfo();
userUpdateInfo.displayName=firstName+" "+lastName;
await user.updateProfile(userUpdateInfo);
await user.updateEmail(email);
您不能在 Authentification,Transaction 和 batch work with firestore no with Authentification 中執行此操作,如果連續更新會導致錯誤“這是一個安全敏感操作,需要用戶最近登錄。如果此要求不是遇到了,請用戶再次驗證,然后調用”。您應該一一進行更新。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.