{"record":{"id":"56c6b0d55e26bb58","repo":"phalcon/cphalcon","slug":"invalid-expiration-time","errorCode":null,"errorMessage":"Invalid Expiration Time","messagePattern":"Invalid Expiration Time","errorType":"exception","errorClass":"InvalidExpirationTime","httpStatus":null,"severity":"error","filePath":"phalcon/Encryption/Security/JWT/Builder.zep","lineNumber":310,"sourceCode":"\n    /**\n     * The \"exp\" (expiration time) claim identifies the expiration time on\n     * or after which the JWT MUST NOT be accepted for processing.  The\n     * processing of the \"exp\" claim requires that the current date/time\n     * MUST be before the expiration date/time listed in the \"exp\" claim.\n     * Implementers MAY provide for some small leeway, usually no more than\n     * a few minutes, to account for clock skew.  Its value MUST be a number\n     * containing a NumericDate value.  Use of this claim is OPTIONAL.\n     *\n     * @param int $timestamp\n     *\n     * @return static\n     * @throws ValidatorException\n     */\n    public function setExpirationTime(int timestamp) -> <static>\n    {\n        if timestamp < time() {\n            throw new InvalidExpirationTime();\n        }\n\n        return this->setClaim(Enum::EXPIRATION_TIME, timestamp);\n    }\n\n    /**\n     * The \"jti\" (JWT ID) claim provides a unique identifier for the JWT.\n     * The identifier value MUST be assigned in a manner that ensures that\n     * there is a negligible probability that the same value will be\n     * accidentally assigned to a different data object; if the application\n     * uses multiple issuers, collisions MUST be prevented among values\n     * produced by different issuers as well.  The \"jti\" claim can be used\n     * to prevent the JWT from being replayed.  The \"jti\" value is a case-\n     * sensitive string.  Use of this claim is OPTIONAL.\n     *\n     * @param string $jwtId\n     *\n     * @return static","sourceCodeStart":292,"sourceCodeEnd":328,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Encryption/Security/JWT/Builder.zep#L292-L328","documentation":"Error \"Invalid Expiration Time\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Encryption/Security/JWT/Builder.zep:310 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}