Set authentication logout handler.
Support angular development integration,