Implement async logout
User.isLoggedIn() returns a boolean