Head of Product & Engineering ad2682c55d
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: guard against empty locationId in OAuth callback and log token fields
GHL returns an empty locationId when the user authorizes at agency level
instead of selecting a specific sub-account location. Without this guard
the token was silently stored under an empty key, making every subsequent
webhook fail with "no token for location".

Also logs location_id/company_id/user_type from the token response to
make future OAuth install debugging easier.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-06 01:15:27 +02:00
..