Skip to content

Commit

Permalink
docs: Remove hoodie.account.isSignedIn
Browse files Browse the repository at this point in the history
  • Loading branch information
michsch authored and gr2m committed May 12, 2017
1 parent 52198b0 commit 8a1c423
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions docs/api/client/hoodie.account.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ Example

.. code:: js
if (hoodie.account.isSignedIn()) {
renderWelcome(hoodie.account)
}
hoodie.account.get('session').then(function (sessionProperties) {
if (!sessionProperties) {
return redirectToHome()
}
renderWelcome(sessionProperties)
}).catch(redirectToHome)
hoodie.account.on('signout', redirectToHome)
Expand Down Expand Up @@ -66,15 +70,6 @@ Example
console.log(error) // should be an error about the password being too short
})
hoodie.account.isSignedIn
-------------------------

Returns ``true`` if user is currently signed in, otherwise ``false``.

.. code:: js
hoodie.account.isSignedIn()
hoodie.account.hasInvalidSession
--------------------------------

Expand Down

0 comments on commit 8a1c423

Please sign in to comment.