Spotcast - custom component to start playback on an idle chromecast device

I’ve experienced that music stopped after 1 hour. I think it is because the token is valid for 1 hour. I’m not sure how to fix this because the token is set using pychromecast whilst launching the spotify app on the chromecast device. What is needed is to sniff the traffic between a phone or a chrome browser running the web player and see if there are any updates of the token.