/home/techb158/ileadtechnology.com/SSM/vendor/tymon/jwt-auth/src/Claims
NameSizeModeActions
Audience.php3530644editdlrm
Claim.php33830644editdlrm
Collection.php27290644editdlrm
Custom.php5130644editdlrm
DatetimeTrait.php19210644editdlrm
Expiration.php6440644editdlrm
Factory.php41270644editdlrm
IssuedAt.php13720644editdlrm
Issuer.php3510644editdlrm
JwtId.php3500644editdlrm
NotBefore.php6780644editdlrm
Subject.php3520644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/tymon/jwt-auth/src/Claims/IssuedAt.php (1372B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tymon\JWTAuth\Claims; use Tymon\JWTAuth\Exceptions\InvalidClaimException; use Tymon\JWTAuth\Exceptions\TokenExpiredException; use Tymon\JWTAuth\Exceptions\TokenInvalidException; class IssuedAt extends Claim { use DatetimeTrait { validateCreate as commonValidateCreate; } /** * {@inheritdoc} */ protected $name = 'iat'; /** * {@inheritdoc} */ public function validateCreate($value) { $this->commonValidateCreate($value); if ($this->isFuture($value)) { throw new InvalidClaimException($this); } return $value; } /** * {@inheritdoc} */ public function validatePayload() { if ($this->isFuture($this->getValue())) { throw new TokenInvalidException('Issued At (iat) timestamp cannot be in the future'); } } /** * {@inheritdoc} */ public function validateRefresh($refreshTTL) { if ($this->isPast($this->getValue() + $refreshTTL * 60)) { throw new TokenExpiredException('Token has expired and can no longer be refreshed'); } } }