hoodiehq/hoodie.js — pull request #272 by gr2m (2014-03-23 12:18:02+00:00)
Title: hoodie.account.signIn(username, password) changes hoodie.id() whet it fails

That's quite a critical bug, I'm looking into it and will start a pull request asap.

Hoodie is signing out before it signs in to clean up all the things before signing in as new user. Problem is that it does all that before it knows if sign in succeeds. I'm sorry, I've no idea how that could slip through, it is obviously wrong.