Update LiveChat token in Rasa

I want to inregrate Rasa with LiveChat service. I created custom channel connector, but faced one problem. In order to call the LiveChat API, I have to send a specific token in the request. This token must be refreshed every 8 hours through this: Authorizing API calls | LiveChat Platform Docs & API Reference . How can I write something like this in custom channel connector? Or can I write this in Rasa elsewhere?