The vardump returns a bool(true) but I don’t understand why?
$link = "https://id.twitch.tv/oauth2/token?grant_type=refresh_token&refresh_token=".$_SESSION['refresh_token']."&client_id=".$this->_client_id."&client_secret=".$this->_client_secret;
$ch = curl_init($link);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
$res = curl_exec($ch);
curl_close($ch);
// Decode
$token = json_decode($res);
var_dump($token);