src/Jwt/SignatureGenerator/SpomkyLabsJoseSignatureGenerator.php
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
        );
    }
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
        );
    }
{@inheritdoc}