{"record":{"id":"7a48be19ab8590f4","repo":"tymondesigns/jwt-auth","slug":"invalid-value-provided-for-claim-claim","errorCode":null,"errorMessage":"Invalid value provided for claim [{claim}]","messagePattern":"Invalid value provided for claim \\[(.+?)\\]","errorType":"exception","errorClass":"Tymon\\JWTAuth\\Exceptions\\InvalidClaimException","httpStatus":null,"severity":"error","filePath":"src/Claims/DatetimeTrait.php","lineNumber":55,"sourceCode":"    {\n        if ($value instanceof DateInterval) {\n            $value = Utils::now()->add($value);\n        }\n\n        if ($value instanceof DateTimeInterface) {\n            $value = $value->getTimestamp();\n        }\n\n        return parent::setValue($value);\n    }\n\n    /**\n     * {@inheritdoc}\n     */\n    public function validateCreate($value)\n    {\n        if (! is_numeric($value)) {\n            throw new InvalidClaimException($this);\n        }\n\n        return $value;\n    }\n\n    /**\n     * Determine whether the value is in the future.\n     *\n     * @param  mixed  $value\n     * @return bool\n     */\n    protected function isFuture($value)\n    {\n        return Utils::isFuture($value, $this->leeway);\n    }\n\n    /**\n     * Determine whether the value is in the past.","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/tymondesigns/jwt-auth/blob/6c70930a92710d97e8e52b182fca2176097f33be/src/Claims/DatetimeTrait.php#L37-L73","documentation":"Error \"Invalid value provided for claim [{claim}]\" thrown in tymondesigns/jwt-auth.","triggerScenarios":"Thrown at src/Claims/DatetimeTrait.php:55 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":"6c70930a92710d97e8e52b182fca2176097f33be","analyzedAt":"2026-08-21T02:16:37.040Z","schemaVersion":2},"datasetVersion":"2026-08-21T03:17:12.404Z"}