Head of Product & Engineering 3863e8f0cd
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: use installedLocations from bulk token response instead of /locations/search
GHL includes installedLocations[] in the company-level token response for
bulk installs. Use those IDs directly to avoid calling /locations/search,
which requires locations.readonly scope that GHL doesn't grant. Falls back
to /locations/search only when the list is absent. Also adds raw_body and
installed_locations fields to token response debug logging.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-06 10:47:40 +02:00
..