diff --git a/internal/ghl/oauth.go b/internal/ghl/oauth.go index 2536b2a..19e6b86 100644 --- a/internal/ghl/oauth.go +++ b/internal/ghl/oauth.go @@ -81,6 +81,7 @@ func (h *OAuthHandler) HandleCallback(w http.ResponseWriter, r *http.Request) { http.Error(w, "missing authorization code", http.StatusBadRequest) return } + slog.Info("ghl oauth callback query params", "params", r.URL.RawQuery) ctx := r.Context() tokenResp, err := h.exchangeCode(ctx, code) @@ -202,6 +203,6 @@ func (h *OAuthHandler) postToken(ctx context.Context, data url.Values) (*TokenRe if err := json.Unmarshal(body, &tokenResp); err != nil { return nil, fmt.Errorf("failed to parse token response: %w", err) } - slog.Info("ghl token response fields", "location_id", tokenResp.LocationID, "company_id", tokenResp.CompanyID, "user_type", tokenResp.UserType) + slog.Info("ghl token response fields", "location_id", tokenResp.LocationID, "company_id", tokenResp.CompanyID, "user_type", tokenResp.UserType, "raw_body", string(body)) return &tokenResp, nil }