Here's my refresh code. Does this look similar to yours? Am I missing anything?
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://auth.tesla.com/oauth2/v3/token");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_POST...