my problem solved by this code.
$allheaders=getallheaders(); $bearer= $allheaders["Authorization"]; $jwt=trim(str_replace('Bearer','',$bearer));