Skip to content

Commit

Permalink
docs: Remove hoodie.account.username (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
michsch authored and gr2m committed May 10, 2017
1 parent 1761beb commit 52198b0
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions docs/api/client/hoodie.account.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ Example
hoodie.account.on('signout', redirectToHome)
hoodie.account.username
-----------------------

`Read-only`. Returns the username if signed in, otherwise ``undefined``.

hoodie.account.validate
-----------------------

Expand Down Expand Up @@ -198,7 +193,7 @@ Example
username: 'pat',
password: 'secret'
}).then(function (sessionProperties) {
alert('Ohaj, ' + sessionProperties.account.username)
alert('Ohaj, ' + sessionProperties.username)
}).catch(function (error) {
alert(error)
})
Expand Down Expand Up @@ -239,7 +234,7 @@ Example
.. code:: js
hoodie.account.signOut().then(function (sessionProperties) {
alert('Bye, ' + sessionProperties.hoodie.account.username)
alert('Bye, ' + sessionProperties.username)
}).catch(function (error) {
alert(error)
})
Expand Down Expand Up @@ -282,7 +277,7 @@ Example
.. code::
hoodie.account.destroy().then(function (sessionProperties) {
alert('Bye, ' + sessionProperties.account.username)
alert('Bye, ' + sessionProperties.username)
}).catch(function (error) {
alert(error)
})
Expand Down

0 comments on commit 52198b0

Please sign in to comment.