var login = Promise.coroutine(function *(){
var authenticationToken = yield getTokenAsync();
var self_details = yield fetch(authenticationToken);
return self_details;
});
Now authenticate opens a route which has 2 props passed to it
as resolve, or reject