webpods
Version:
Append-only log service with OAuth authentication
14 lines • 458 B
TypeScript
/**
* Test mode security guard
* Ensures test headers can only be used in controlled test environments
*/
import { Request } from "express";
/**
* Check if test mode is allowed for this request
* Requires ALL three conditions:
* 1. NODE_ENV must be 'test'
* 2. WEBPODS_TEST_MODE must be 'enabled'
* 3. Request must come from localhost
*/
export declare function isTestModeAllowed(req: Request): boolean;
//# sourceMappingURL=test-mode-guard.d.ts.map