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

Not Before (nbf) timestamp cannot be in the future

Error message

Not Before (nbf) timestamp cannot be in the future

What it means

Error "Not Before (nbf) timestamp cannot be in the future" thrown in tymondesigns/jwt-auth.

Source

Thrown at src/Claims/NotBefore.php:31

use Tymon\JWTAuth\Exceptions\TokenInvalidException;

class NotBefore extends Claim
{
    use DatetimeTrait;

    /**
     * {@inheritdoc}
     */
    protected $name = 'nbf';

    /**
     * {@inheritdoc}
     */
    public function validatePayload()
    {
        if ($this->isFuture($this->getValue())) {
            throw new TokenInvalidException('Not Before (nbf) timestamp cannot be in the future');
        }
    }
}

View on GitHub (pinned to 6c70930a92)

When it happens

Trigger: Thrown at src/Claims/NotBefore.php:31 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/39eb278d05367161. Report an issue: GitHub.