If you're trying to get this to work in 2021:
missing container usage can be replaced by
$config=Configuration::forUnsecuredSigner();
And the builder signature changed to:
$token=(string)$config->builder()->issuedBy("teamId")// (iss claim) // teamId->issuedAt(newDateTimeImmutable())// time the token was issuedAt->withHeader('kid',"keyId")->getToken(newSha256(),newKey\LocalFileReference('file://'.$p8file));// get the generated token
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you're trying to get this to work in 2021:
missing container usage can be replaced by
And the builder signature changed to: