You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FirebaseAuth.prototype.updateUser=function(uid,newUser){constself=this;returnnewPromise((resolve,reject)=>{this._defer('updateUser',_.toArray(arguments),()=>{consti=_.findIndex(self._auth.users,u=>u.uid===uid);if(i===-1){reject(newError('Tried to update a nonexistent user'));}else{Object.keys(newUser).forEach(u=>{console.log(u);self._auth.users[i][u]=newUser[u];});resolve(self._auth.users[i].clone());}});});};
firebase-mock/src/firebase-auth.js
Line 102 in 4a6a54d
Hello guys. I believe this implementation is wrong according firebase-admin updateUser function:
https://github.com/firebase/firebase-admin-node/blob/488f9318350c6b46af2e93b99907b9a02f170029/src/auth/auth.ts#L411
I guess this resolve the problem:
And this:
The text was updated successfully, but these errors were encountered: