mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-22 23:39:45 +00:00
- Add workspaceApi.ts with all workspace endpoint methods - Add sessionManager.ts for workspace token storage - Update workspaceConstants.ts with storage keys - Add INVITE namespace to preservedQueryNamespaces
11 lines
394 B
TypeScript
11 lines
394 B
TypeScript
export const WORKSPACE_STORAGE_KEYS = {
|
|
// sessionStorage keys (cleared on browser close)
|
|
CURRENT_WORKSPACE: 'Comfy.Workspace.Current',
|
|
TOKEN: 'Comfy.Workspace.Token',
|
|
EXPIRES_AT: 'Comfy.Workspace.ExpiresAt',
|
|
// localStorage key (persists across browser sessions)
|
|
LAST_WORKSPACE_ID: 'Comfy.Workspace.LastWorkspaceId'
|
|
} as const
|
|
|
|
export const TOKEN_REFRESH_BUFFER_MS = 5 * 60 * 1000
|