Let Cards players delete their account and read a privacy notice

Add a Compte section with a privacy notice and a confirmed deletion that
anonymises the player row, erases their possessions and cancels open trades.
The public contact comes from CARDS_PRIVACY_CONTACT, which production now
requires before enabling the game. The admin E2E no longer relies on a pull
from the previous test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-05 18:05:41 +01:00
parent 155187d01f
commit e60fbd4e9b
16 changed files with 319 additions and 10 deletions

View file

@ -49,6 +49,12 @@ export async function logoutCards() {
return result;
}
export async function deleteCardsAccount() {
const result = await request("/account", { method: "DELETE" });
csrfToken = "";
return result;
}
// `purchased` : utilise une ouverture achetée en boutique au lieu de la réserve rechargeable.
export function openPack(collectionId, { purchased = false } = {}) {
const requestKey = crypto.randomUUID();