使用云功能一次更新多個子用戶的自定義宣告的最佳方法是什么?我的意思是說一組用戶的電子郵件(字串)串列上的 forEach 會做這項作業嗎?
const list = ['[email protected]','[email protected]','[email protected]']
list.forEach((el)=>
getAuth()
.getUserByEmail(el)
.then((user) => {
return getAuth().setCustomUserClaims(user.uid, {
premium : true,
});
})
.catch((error) => {
console.log(error);
});
)
uj5u.com熱心網友回復:
沒有 API 可以同時更新多個用戶。您必須單獨處理它們。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/472501.html
標籤:节点.js firebase 身份验证 火力基地管理员
上一篇:正確使用DOTENV
