EN

@core / consent

1.1.0 ▾
verifiedMIT
GitHub

GDPR cookie consent: banner with equal reject/accept, categories, proof records, ConsentGate and Google Consent Mode v2

Code9 filesContext~743 tokensscan passed

The exact tree that will be injected, after .genpmignore. Pinned to

src/lib/consent/adapters/next.tsread-only · 37d6a8f
// Adaptador Next.js: `app/api/consent/route.ts` → `export const { GET, POST } = consentRoute({ cookiesByCategory: { … } });`
import { handleConsent } from './http.ts';

export const consentRoute = (opts: Parameters<typeof handleConsent>[1] = {}) => ({ GET: (req: Request) => handleConsent(req, opts), POST: (req: Request) => handleConsent(req, opts) });

Report @core/consent

Sign in with GitHub to report a package.