code: public function generate(JwtInterface $jwt): string
      {
          $jwk = JWKFactory::createFromKeyFile($jwt->getPath(), '', [
              'kid' => $jwt->getKey(),
              'alg' => 'ES256',
              'use' => 'sig',
          ]);
  
          $payload = [
              'iss' => $jwt->getTeamId(),
              'iat' => time(),
          ];
  
          $header = [
              'alg' => 'ES256',
              'kid' => $jwk->get('kid'),
          ];
  
          return JWSFactory::createJWSToCompactJSON(
              $payload,
              $jwk,
              $header
          );
      }
docs: {@inheritdoc}