JWT App validation via cURL (PHP) results in 401

I posted an update here as well Solved: JWT App validation via cURL (PHP) results in 401

But I noticed that expiry time should be time + 3600 - correct?

Also I am wondering if you can help me? I posted an update here too I can't get JWT to work with PHP Rest Client - #6 by YatishMadhav - please have a look and let me know if there is something I am doing incorrectly?

Thank you in advance.