@vendure/core
Version:
A modern, headless ecommerce framework
19 lines (18 loc) • 831 B
TypeScript
import { Logger } from '../../../config/logger/vendure-logger';
import { SuperadminCredentials } from '../../../config/vendure-config';
/**
* @description
* Verifies that the configured `superadminCredentials.password` is not the
* well-known default shipped by `@vendure/common`. Used during bootstrap to
* fail loudly in production environments and warn otherwise.
*
* The default `superadmin` identifier is intentionally allowed — only a
* default password is treated as insecure.
*
* Exported for unit testing — production callers should rely on the default
* `process.env.NODE_ENV` and {@link Logger}.
*/
export declare function checkSuperadminCredentials(credentials: Pick<SuperadminCredentials, 'identifier' | 'password'>, options?: {
nodeEnv?: string;
logger?: Pick<typeof Logger, 'warn'>;
}): void;