@gsb-core/core
Version:
GSB core services and classes for platform-independent web applications
30 lines (29 loc) • 1.07 kB
TypeScript
/**
* Tenant Configuration
* Simplified version that uses consolidated functions from gsb-config.ts
*/
import { getGsbTenantCode } from './gsb-config';
export { getGsbTenantCode as getCurrentTenantCode };
/**
* Set up tenant based on the current environment
* @param hostname Current hostname
* @param isDevMode Whether we're in development mode
* @returns The current tenant code
*/
export declare function setupTenant(hostname: string, isDevMode?: boolean): string;
/**
* Check if we should initialize a specific tenant
* @param desiredTenant The desired tenant to check
* @returns True if we should initialize the desired tenant
*/
export declare function shouldInitTenant(desiredTenant: string): boolean;
/**
* Parse tenant from JWT token - alias for extractTenantCodeFromToken
* @param token JWT token
* @returns Tenant code or null if can't parse
*/
export declare function getTenantFromToken(token: string): string | null;
/**
* Get the current tenant - alias for getGsbTenantCode
*/
export declare function getCurrentTenant(): string | undefined;