phalcon/cphalcon · error · InvalidNotBefore

Invalid Not Before

Error message

Invalid Not Before

What it means

Error "Invalid Not Before" thrown in phalcon/cphalcon.

Source

Thrown at phalcon/Encryption/Security/JWT/Builder.zep:382

    /**
     * The "nbf" (not before) claim identifies the time before which the JWT
     * MUST NOT be accepted for processing.  The processing of the "nbf"
     * claim requires that the current date/time MUST be after or equal to
     * the not-before date/time listed in the "nbf" claim.  Implementers MAY
     * provide for some small leeway, usually no more than a few minutes, to
     * account for clock skew.  Its value MUST be a number containing a
     * NumericDate value.  Use of this claim is OPTIONAL.
     *
     * @param int $timestamp
     *
     * @return static
     * @throws ValidatorException
     */
    public function setNotBefore( int timestamp) -> <static>
    {
        if timestamp > time() {
            throw new InvalidNotBefore();
        }

        return this->setClaim(Enum::NOT_BEFORE, timestamp);
    }

    /**
     * @param string $passphrase
     *
     * @return static
     * @throws ValidatorException
     */
    public function setPassphrase( string passphrase) -> <static>
    {
        if !preg_match(
            "/^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[\W_]).{16,}$/",
            passphrase
        ) {
            throw new WeakPassphrase();

View on GitHub (pinned to b7419de9cd)

When it happens

Trigger: Thrown at phalcon/Encryption/Security/JWT/Builder.zep:382 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phalcon/cphalcon@b7419de9cd (2026-08-21). Data as JSON: /api/errors/61b2767ee33fad8a. Report an issue: GitHub.