Refress Token Return NULL

The vardump returns a bool(true) but I don’t understand why?

$link = "".$_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);



            // Decode

            $token = json_decode($res);


You didn’t set CURLOPT_RETURNTRANSFER as a curl_setopt

So $res as basic true/false on did curl die or not

This PHP example may help

1 Like

That work, thank you very much

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.