Adding code provided by the new flow api for sync the user between the header and livefyre widget.