Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit fa3752d

Browse files
reloadUser finally documented
1 parent 3c8f474 commit fa3752d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/AUTHENTICATION.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,20 @@ The logged in user will be updated, but for `getCurrentUser` to reflect the chan
199199
);
200200
```
201201

202+
### Reloading a user
203+
The currently logged in user will be reloaded (the one returned by `getCurrentUser`).
204+
205+
```js
206+
firebase.reloadUser().then(
207+
function () {
208+
// now call 'getCurrentUser' to get the reloaded user data
209+
},
210+
function (errorMessage) {
211+
console.log(errorMessage);
212+
}
213+
);
214+
```
215+
202216
### Deleting a user
203217
The currently logged in user will be deleted (the one returned by `getCurrentUser`).
204218

0 commit comments

Comments
 (0)