Skip to content

Rights Center — npm package

The @truconsent/consent-notice package includes the <RightCenter /> component — a pre-built UI for DPDPA data subject rights on the web. It lets users view their consents, withdraw them, file grievances, manage nominees, and access data rights guaranteed by Sections 6 and 11–14 of the DPDPA.

For full integration details — installation, props, customisation, and user ID handling — see the Rights Center — Web page.

Terminal window
npm install @truconsent/consent-notice
import { RightCenter } from '@truconsent/consent-notice';
import '@truconsent/consent-notice/dist/consent-modal.css';
export default function PrivacyPage() {
return (
<RightCenter
userId={currentUser.id}
apiKey={import.meta.env.VITE_TRU_CONSENT_API_KEY}
organizationId={import.meta.env.VITE_TRU_CONSENT_ORGANIZATION_ID}
apiUrl={import.meta.env.VITE_TRU_CONSENT_API_URL}
assetId={import.meta.env.VITE_TRU_CONSENT_ASSET_ID}
/>
);
}
PlatformGuide
iOSRights Center — iOS
AndroidRights Center — Android
FlutterRights Center — Flutter
React NativeRights Center — React Native