Skip to content

Commit 0a80fd9

Browse files
authored
Document Async Current User (JS) (#496)
1 parent f9c2c21 commit 0a80fd9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

_includes/js/users.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ if (currentUser) {
9090
}
9191
</code></pre>
9292

93+
When using a platform with an async storage system you should call `currentAsync()` instead.
94+
95+
<pre><code class="javascript">
96+
Parse.User.currentAsync().then(function(user) {
97+
// do stuff with your user
98+
});
99+
</code></pre>
100+
93101
You can clear the current user by logging them out:
94102

95103
<pre><code class="javascript">

0 commit comments

Comments
 (0)