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
- Add new method updateUser to the auth object, so that users can 'phone
home' about ID token changes
- Move ID token refresh into a publicly-exposed method
- Make sure token refresh phones home
@@ -220,6 +221,12 @@ Finds a user previously created with [`createUser`](https://www.firebase.com/doc
220
221
221
222
Finds a user previously created with [`createUser`](https://www.firebase.com/docs/web/api/firebase/createuser.html). If no user was created with the specified `email`, the promise is rejected.
222
223
224
+
##### `updateUser(user)` -> `Promise<Object>`
225
+
226
+
Replace the existing user with a new one, by matching uid. Throws an
227
+
error If no user exists whose uid matches the given user's uid. Returns
228
+
the updated user.
229
+
223
230
## Server Timestamps
224
231
225
232
MockFirebase allow you to simulate the behavior of [server timestamps](https://www.firebase.com/docs/web/api/servervalue/timestamp.html) when using a real Firebase instance. Unless you use `Firebase.setClock`, `Firebase.ServerValue.TIMESTAMP` will be transformed to the current date (`Date.now()`) when your data change is flushed.
0 commit comments