Suriyakumarvijayanayagam 55bc7f70d1 feat: expose tenantname on miler verify-pin and profile responses
The miler app resolves a rider's service profile (hyperlocal vs logistics,
which decides whether the Start-delivery button renders) from the tenant NAME
in preference to the raw tenantid. Neither verify-pin nor GET /miler/profile
returned a tenant name — the field the app keys off did not exist. Add
resolveTenantName and include tenantname (+ tenantid) on both responses.

Including it on GET /miler/profile lets the app refresh tenantname at launch
without forcing a re-login after this rollout.

This is the precondition for safely enabling MILER_COLLECTED_STATE_ENABLED:
without tenantname, any tenant whose id the app hasn't mapped falls back to the
logistics profile (no Start-delivery button) and would strand collected
hyperlocal parcels.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WRaFH5hMRqmUQvVPQsyjZD
2026-08-26 17:05:06 +05:30
2026-06-22 17:43:40 +05:30
2026-06-30 12:03:04 +05:30
2026-06-22 17:43:40 +05:30
2026-06-22 17:43:40 +05:30
2026-06-22 17:43:40 +05:30
Description
No description provided
5.1 MiB
Languages
Go 97.9%
PLpgSQL 1.6%
Python 0.4%