UNPKG

@cocalc/server

Version:

CoCalc server functionality: functions used by either the hub and the next.js server

10 lines (9 loc) 629 B
import { AllSiteSettingsCached as ServerSettings } from "@cocalc/util/db-schema/types"; export type { ServerSettings }; import type { PostgreSQL } from "@cocalc/database/postgres/types"; import { PassportStrategyDB } from "@cocalc/server/auth/sso/types"; export declare function resetServerSettingsCache(): void; export declare function getPassportsCached(): PassportStrategyDB[] | undefined; export declare function setPassportsCached(val: PassportStrategyDB[]): boolean; export declare function getServerSettings(): Promise<ServerSettings>; export declare function load_server_settings_from_env(db: PostgreSQL): Promise<void>;