Skip to content

CONSENT_FORGED: Consent given by the component

Severity Fault Stage
error customer (the source package) build output

The component calls the consent state’s setGiven with something other than false outside an event handler (at render, in an effect, in a timer), so the box is ticked without the visitor’s act. Consent under the LGPD is the visitor’s affirmative act; a forged proof is a submission of personal data without consent, so it needs a person’s review: it is refused until then (rule consent-forged).

Render <Consent consent={consent} />, or call consent.setGiven only in the onChange of your own checkbox.