← all posts
Compliance

DPDP for developers: what the Act actually requires from your auth layer

2026-10-24 · 8 min read · NexAuth team

The Digital Personal Data Protection Act isn't a lawyer problem — it's an API surface problem. If your auth layer can't produce consent records and honor erasure requests, the compliance burden lands on your code.

What DPDP requires, mapped to APIs

Purpose-level consent — not "I agree to everything" but recorded consent per purpose with version + timestamp. When a user authenticates, the consent intent travels with the session.

Withdrawal — revoking consent must be as easy as giving it. That's a real endpoint, not an email to support.

Data Principal rights — access (export everything), correction, erasure, grievance. Each is an API + an audit trail.

Notice — before collection, tell the user what, why, and for how long.

The tamper-evidence detail everyone misses

Consent records that live in a mutable table are weak evidence. A hash-chained ledger — each row's hash commits to the previous — makes retroactive edits detectable. That's what auditors will ask for in 2027.

What NexAuth gives you out of the box

Compliance stops being a scramble when it's a column in your auth schema.

Try it

WhatsApp OTP, passkeys, RBAC and DPDP consent — free forever, pay only for sends. Quickstart →