fix(auth): align demo staff phone identity and clock-in payload

This commit is contained in:
zouantchaw
2026-03-17 14:44:32 +01:00
parent 1a3a120499
commit 13471629f6
5 changed files with 103 additions and 1 deletions

View File

@@ -182,6 +182,13 @@ Possible response A:
This is the normal mobile path when frontend does **not** send recaptcha or integrity tokens.
Current dev demo worker:
- phone number: `+15557654321`
- email: `ana.barista+v2@krowd.com`
Those two now resolve to the same Firebase user and the same seeded staff profile in v2.
Possible response B:
```json

View File

@@ -114,6 +114,31 @@ Full auth behavior, including staff phone flow and refresh rules, is documented
- `GET /staff/faqs`
- `GET /staff/faqs/search`
Example `GET /staff/clock-in/shifts/today` item:
```json
{
"assignmentId": "uuid",
"shiftId": "uuid",
"title": "Assigned espresso shift",
"clientName": "Google Mountain View Cafes",
"hourlyRate": 23,
"roleName": "Barista",
"location": "Google MV Cafe Clock Point",
"locationAddress": "1600 Amphitheatre Pkwy, Mountain View, CA",
"latitude": 37.4221,
"longitude": -122.0841,
"startTime": "2026-03-17T13:48:23.482Z",
"endTime": "2026-03-17T21:48:23.482Z",
"clockInMode": "GEO_REQUIRED",
"allowClockInOverride": true,
"geofenceRadiusMeters": 120,
"nfcTagId": "NFC-DEMO-ANA-001",
"attendanceStatus": "NOT_CLOCKED_IN",
"clockInAt": null
}
```
### Staff writes
- `POST /staff/profile/setup`