feat(club-005): club registered users: account linking and automatic recovery

This commit is contained in:
Deploy
2026-08-26 20:49:36 +02:00
parent 3aecd2bec0
commit db33706d2d
15 changed files with 349 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
# CLUB-005 — Documentation
## Endpoints added/modified
### PATCH /club/me
Link the anonymous Club member (identified by device token cookie) to the authenticated user account.
- **Auth**: session required
- **Response**: `{ member, linked: boolean, config }`
### POST /club/merge
Merge an anonymous member into the authenticated user's registered member.
- **Auth**: session required
- **Body**: `{ anonymousMemberId: uuid }`
- **Response**: `{ member, mergedId, config }`
- The anonymous member's balance is added to the registered member
- All devices are transferred to the registered member
- The anonymous member is marked as `merged`