/** * @param Jwt $jwt */ public function timestampJwt(Jwt $jwt) { $jwt->setIssuer($this->issuer); $jwt->setIssuedAt(time()); if (null === $jwt->getJwtId()) { $jwt->setJwtId(sha1(uniqid(mt_rand(), true))); } }