GWT.runAsync(new RunAsyncCallback() {
@Override
public void onSuccess() {
final AuthServiceAsync authService = GWT.create(AuthService.class);
bus.addHandler(LogoutEvent.TYPE, new LogoutEventHandler() {
@Override
public void onLogout() {
History.newItem("login");
}
});