feat(core-consent): add extractAnonymousConsent and migrateAnonymousConsent helpers
Migration helpers let the auth signUp flow transfer anonymous cookie consent to an authenticated user's record. extractAnonymousConsent parses the raw Cookie header; migrateAnonymousConsent calls IConsent.grant with method: "signup-migration" for each granted category, making the migration traceable in the audit log. No-op when the consent cookie is absent. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
{
|
||||
"generatedAt": "2026-05-19T12:48:28.197Z",
|
||||
"commit": "7dd46b6",
|
||||
"generatedAt": "2026-05-19T12:59:06.953Z",
|
||||
"commit": "c346f85",
|
||||
"repo": {
|
||||
"statements": 96.63,
|
||||
"branches": 91.77,
|
||||
"functions": 96.74,
|
||||
"lines": 96.63,
|
||||
"statements": 96.65,
|
||||
"branches": 91.95,
|
||||
"functions": 96.77,
|
||||
"lines": 96.65,
|
||||
"counts": {
|
||||
"lf": 4476,
|
||||
"lh": 4325,
|
||||
"brf": 875,
|
||||
"brh": 803,
|
||||
"fnf": 276,
|
||||
"fnh": 267
|
||||
"lf": 4511,
|
||||
"lh": 4360,
|
||||
"brf": 894,
|
||||
"brh": 822,
|
||||
"fnf": 279,
|
||||
"fnh": 270
|
||||
}
|
||||
},
|
||||
"byPackage": {
|
||||
@@ -59,17 +59,17 @@
|
||||
}
|
||||
},
|
||||
"@repo/core-consent": {
|
||||
"statements": 99.49,
|
||||
"branches": 91.67,
|
||||
"functions": 95.65,
|
||||
"lines": 99.49,
|
||||
"statements": 99.57,
|
||||
"branches": 93.67,
|
||||
"functions": 96.15,
|
||||
"lines": 99.57,
|
||||
"counts": {
|
||||
"lf": 195,
|
||||
"lh": 194,
|
||||
"brf": 60,
|
||||
"brh": 55,
|
||||
"fnf": 23,
|
||||
"fnh": 22
|
||||
"lf": 230,
|
||||
"lh": 229,
|
||||
"brf": 79,
|
||||
"brh": 74,
|
||||
"fnf": 26,
|
||||
"fnh": 25
|
||||
}
|
||||
},
|
||||
"@repo/core-shared": {
|
||||
|
||||
Reference in New Issue
Block a user