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 blogging-forward open source social network where we learn from one another
If you're trying to get this to work in 2021:
missing container usage can be replaced by
And the builder signature changed to: