Blogs

Lightning-user-consent-cookie

Nirav Asodariya 07/01/2026   LWC

The purpose of lightning/userConsentCookie is to allow developers to read and update a user’s cookie consent preferences directly from Lightning Web Components so that applications can respect privacy rules, enable or disable features based on consent, and remain compliant with legal and organizational data protection policies.