HOCO B2B
Team tasksImad

MRA-22 — Reseller app code screen for WhatsApp

RA-04 words itself from the channel of auth.otp.send and offers the SMS option.

FieldDetails
Task codeMRA-22
PhaseP1 — V1 build & integration
Product scopeV1
StatusPlanned
StartSun 27 Dec 2026
DueMon 28 Dec 2026
ResponsibleImad — Mobile developer (Flutter)
Co-responsible—
Effort0.5 person-day(s) planned · 1 from scratch · size S
Area · appReseller app · mobile
Depends onSRV-51, MOB-06
UnblocksMRA-23
Milestones—

Summary

RA-04 words itself from the channel of auth.otp.send and offers the SMS option.

Description

Decision D-64. API: auth.otp.send takes an optional channel (WHATSAPP or SMS) and its answer now says channel WHATSAPP, SMS or EMAIL. Send nothing for the first code, so the server chooses. Word RA-04 from the channel of the answer, never from the request: it says SMS when WhatsApp refused the message. On WHATSAPP, show « Recevoir le code par SMS », which repeats the call with channel SMS and clears the boxes; the old code stops working. It is available at once, because the 60 s cooldown is per channel. auth.otp.verify does not change. Keep sending androidAppHash: SMS auto-fill still applies, but a WhatsApp code has no auto-fill. A client whose enum only knows SMS and EMAIL breaks on the new value once the setting is on, so regenerate hoco_api first. Staging: when the setting is on, simulated codes land in Mailpit in the phone's mailbox, and the test numbers keep 123456. The delegate app does not change.

Subtasks

#SubtaskOwner
1Regenerate hoco_apiImad
2Wording of RA-04 from channel, in the three languagesImad
3Recevoir le code par SMSImad

Deliverables

  • apps/reseller/lib/src/features/auth/ updated

Acceptance criteria

  • With WhatsApp on, RA-04 names WhatsApp and offers the SMS option
  • An answer of SMS after a WhatsApp refusal shows the SMS wording
  • With WhatsApp off, RA-04 is unchanged

Requirements covered

RequirementTitleRelease
AUTH-03Reseller self sign-up: phone verified by OTP, store details, declared customer type (super-gros, demi-gros, détail), password, optional invitation codeV1
AUTH-04Reseller sign-in (phone or email + password, or a one-time code) and password reset by OTPV1
AUTH-07Password policy, hashing, OTP expiry/resend cooldown and attempt limitingV1

Screens

ScreenNameApp
RA-04OTP verificationRA
RA-08Forgot passwordRA

API surface

Endpoint groupOperations
Authentication & sessions14

Test measures

  • Widget test of RA-04 for each channel

Risks

  • Must ship before the setting is switched on in production

KPI

  • Delivered by Mon 28 Dec 2026 within 0.5 person-day(s).
  • Every acceptance criterion above demonstrated before hand-off; linked requirements' acceptance criteria pass.
  • Zero open critical defects, permission gaps or data-integrity regressions at sign-off.

Generated from content/plan/tasks.json by scripts/generate-team-tasks.mjs. Dates are computed by the scheduler (Sunday–Thursday weeks, holidays excluded) — change the plan, not this page.

On this page