mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-29 21:14:49 +02:00
[eric] account UI + proxy URL fix
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user