From 02e28bbbe9d95143eddbfeee9ac5a89bc9a986d1 Mon Sep 17 00:00:00 2001 From: Luis Pater Date: Fri, 10 Oct 2025 10:20:33 +0800 Subject: [PATCH] feat(watcher): add support for `proxy_url` in auth metadata - Extracted and assigned `proxy_url` from metadata to `Auth.ProxyURL`. --- internal/watcher/watcher.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/watcher/watcher.go b/internal/watcher/watcher.go index b4ed25a0..593768c8 100644 --- a/internal/watcher/watcher.go +++ b/internal/watcher/watcher.go @@ -951,6 +951,11 @@ func (w *Watcher) SnapshotCoreAuths() []*coreauth.Auth { id = rel } + proxyURL := "" + if p, ok := metadata["proxy_url"].(string); ok { + proxyURL = p + } + a := &coreauth.Auth{ ID: id, Provider: provider, @@ -960,6 +965,7 @@ func (w *Watcher) SnapshotCoreAuths() []*coreauth.Auth { "source": full, "path": full, }, + ProxyURL: proxyURL, Metadata: metadata, CreatedAt: now, UpdatedAt: now,