nonce = $nonce; } /** * @param mixed $value * * @throws InvalidClaimException */ public function checkClaim($value): void { if ($value !== $this->nonce) { throw new InvalidClaimException(sprintf('Nonce mismatch, expected %s, got: %s', $this->nonce, (string) $value), self::CLAIM_NAME, $value); } } public function supportedClaim(): string { return self::CLAIM_NAME; } }