feat(auth): add PII and retention metadata to users collection
Tag displayName as identification-username PII and declare daily purge with 30-day post-deletion hard-delete retention. PAYLOAD_AUTH_PII_DEFAULTS covers email/credentials automatically — no authPii override needed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"generatedAt": "2026-05-18T18:55:54.185Z",
|
"generatedAt": "2026-05-18T19:03:46.644Z",
|
||||||
"commit": "d326270",
|
"commit": "464df9a",
|
||||||
"repo": {
|
"repo": {
|
||||||
"statements": 96.43,
|
"statements": 96.43,
|
||||||
"branches": 91.71,
|
"branches": 91.71,
|
||||||
|
|||||||
@@ -6,10 +6,28 @@ export const users: CollectionConfig = {
|
|||||||
admin: {
|
admin: {
|
||||||
useAsTitle: "email",
|
useAsTitle: "email",
|
||||||
},
|
},
|
||||||
|
custom: {
|
||||||
|
retention: {
|
||||||
|
purgeSchedule: "daily",
|
||||||
|
postDeletion: {
|
||||||
|
duration: "P30D",
|
||||||
|
trigger: "after-deletion",
|
||||||
|
action: "hard-delete",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "displayName",
|
name: "displayName",
|
||||||
type: "text",
|
type: "text",
|
||||||
|
custom: {
|
||||||
|
pii: {
|
||||||
|
category: "identification-username",
|
||||||
|
purpose: ["service-delivery"],
|
||||||
|
exportable: true,
|
||||||
|
restrictable: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "role",
|
name: "role",
|
||||||
|
|||||||
Reference in New Issue
Block a user