Re-read your post, in order to get the GET data sent back from twitch, you need to grab the data from the $_GET superglobal on the receiving script. Your code posted above should work, assuming you are grabbing the right key for the data, and that the token is returned properly (The query was successful).
$token = (isset($_GET['code'])) ? $_GET['code'] : null;
if ($token !== null)
{
$authCode = $twitchtv->get_access_token($token);
} else {
// Run error logging here and be sure to printf() $_GET so you can see what you had
}
Without you knowing what the GET query returned as though, I can not be sure if the receiving script got the proper data back.