feat(watcher): add support for proxy_url in auth metadata

- Extracted and assigned `proxy_url` from metadata to `Auth.ProxyURL`.
This commit is contained in:
Luis Pater
2025-10-10 10:20:33 +08:00
parent b9c7b9eea5
commit 02e28bbbe9

View File

@@ -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,