feat(club-005): club registered users: account linking and automatic recovery
This commit is contained in:
17
work/artifacts/CLUB-005/documenter.md
Normal file
17
work/artifacts/CLUB-005/documenter.md
Normal 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`
|
||||
Reference in New Issue
Block a user