Closed gr2m closed 8 years ago
To simulate an unauthenticated state, replace session.id in localStorage.account with a bogus value, then reload the page and do account.fetch()
session.id
localStorage.account
account.fetch()
account.update
account.profile.fetch
account.profile.update
I'll try this one!
this is on hold as it will probably be fixed by https://github.com/hoodiehq/hoodie-client-account/issues/64
To simulate an unauthenticated state, replace
session.id
inlocalStorage.account
with a bogus value, then reload the page and doaccount.fetch()
account.fetch()
. In the latter, make sure that an "unauthenticate" event gets triggeredaccount.update
,account.profile.fetch
andaccount.profile.update