The “access_token” refresh resets the subscription to webhooks?
I came to this conclusion while I was testing the “channel subscriptions” webhook, and the only thing that changed a few hours after the subscription request was the “access_token” (Updated using the “refresh_token”).
I set the duration to 3 days, as below (I masked sensitive data with ‘X’):
curl -H 'Content-Type: application/json' -H 'Client-ID: l94wqf6XXXX7ltimejpsoxXXXXXX' -H 'Authorization: Bearer 7mXXXXXp7mXXXXXXXc8x3bzh' -X POST -d '{"hub.callback": "https://example.com/test/whtw.php?s=9X63XXXX6", "hub.mode": "subscribe", "hub.topic": "https://api.twitch.tv/helix/subscriptions/events?broadcaster_id=8XXX6815&first=1", "hub.lease_seconds": 259200}' 'https://api.twitch.tv/helix/webhooks/hub'
At the beginning all notifications are delivered, in fact I have a log with all requests made by Twitch.tv to my endpoint.
A few hours later, reached the next live (~ 8h later), they no longer arrive.
So, as I said at the beginning, is it possible that the change of the access token ends the subscriptions to the webhooks?