After making a call to a web API via WinJS.xhr (with a post), the response goes to the onComplete function provided in .then(). There I need to parse the response and determine whether or not a user was successfully logged in, and if so I need to store their
user hash in app storage. This would be two Promise objects: First the one returned by WinJS.xhr and then possibly the one returned by Windows.ApplicationModel.roaming.writeText. What I can't figure out is how to combine these two in a way that allows me to
return one promise object.