[eric] account UI + proxy URL fix

This commit is contained in:
ciregenz
2026-05-07 11:17:01 -07:00
parent 7a6a49655c
commit fb78f013f3
6 changed files with 144 additions and 6 deletions
+6 -1
View File
@@ -3,7 +3,12 @@ const host = window.location.hostname || 'localhost';
export const API_BASE = `http://${host}:${port}/api`;
export const WS_BASE = `ws://${host}:${port}`;
export const OPENSWARM_DEFAULT_PROXY_URL = 'https://api.openswarm.ai';
// Must match openswarm-cloud's PUBLIC_BASE_URL (fly.toml) and the redirect
// URI registered on the Google OAuth client. The historical `.ai` value
// resolved to NXDOMAIN — fine while no frontend caller used it directly,
// but the v1.0.29 sign-in gate is the first frontend caller that
// constructs URLs from this constant, so the typo had to go.
export const OPENSWARM_DEFAULT_PROXY_URL = 'https://api.openswarm.com';
// Per-install auth token. Fetched from Electron's main process via the
// preload contextBridge. We cache it after first resolution so every
+1 -1
View File
@@ -62,7 +62,7 @@ export interface AppSettings {
openswarm_subscription_plan?: string | null;
openswarm_subscription_expires?: string | null;
openswarm_usage_cached?: SubscriptionUsage | null;
// Identity (v1.0.30+). Populated after a successful Google OAuth or
// Identity (v1.0.29+). Populated after a successful Google OAuth or
// magic-link sign-in via /api/auth/signin-activate. Stripe checkout also
// populates these because the cloud's bearer-mint always returns user info.
user_id?: string | null;