tymondesigns/jwt-auth · error · Tymon\JWTAuth\Exceptions\TokenInvalidException

Issued At (iat) timestamp cannot be in the future

Error message

Issued At (iat) timestamp cannot be in the future

What it means

Error "Issued At (iat) timestamp cannot be in the future" thrown in tymondesigns/jwt-auth.

Source

Thrown at src/Claims/IssuedAt.php:49

     */
    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');
        }
    }
}

View on GitHub (pinned to 6c70930a92)

When it happens

Trigger: Thrown at src/Claims/IssuedAt.php:49 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tymondesigns/jwt-auth@6c70930a92 (2026-08-21). Data as JSON: /api/errors/90ba7c7235743823. Report an issue: GitHub.