try { $usertoken_to_verify = $_GET["usertoken"]; $decodejwt = JWT::decode($usertoken_to_verify, $key, array('HS256')); print_r($decodejwt); } catch (Exception $e) { echo $e; }