Publishing a page with a widget in it causes the widget interface to error

Publishing a page with a widget in it causes the widget interface to error

I've just done a test publish of a page that contains a widget, however in the console log it tells me that the authorisation token has expired. What is the correct way to publish a page with a widget? What we want to do is allow a customer to review their booking and then select the specific dates they want to pay for. The widget will then take them to a payment screen where they can pay for the selected dates.