public function __construct($algorithm = 'HS256') { $this->headers = ['typ' => 'JWT', 'alg' => $algorithm]; JWT::$algorithm = $algorithm; }