Flow.getUser() won't return a deferred, but rather a user object. This is still valid code, but it will always be true. What should happen here is just self.user = Flow.getUser();