There's an issue in some versions of PHP 5.5 where JSON_BIGINT_AS_STRING isn't implemented properly: json_decode(): option JSON_BIGINT_AS_STRING not implemented firebase/php-jwt/Firebase/PHP-JWT/Authentication/JWT.php(137): json_decode('{"typ":"JWT","a...', false, 512, 2)