UNPKG

histoire

Version:

A fast story book powered by Vite

9 lines • 804 B
/** Captures private listener credentials before project config or workers can read env. */ export declare function captureMcpToken(environment?: NodeJS.ProcessEnv): string | undefined; /** Accepts canonical hexadecimal/base64url tokens containing at least 32 decoded bytes. */ export declare function validateMcpToken(token: string | undefined, required?: boolean): void; /** Creates one fixed-size comparison digest, never logging or returning credentials. */ export declare function createMcpTokenVerifier(token: string | undefined): (authorization: string | string[] | undefined) => boolean; /** Stable identity for one configured machine credential, without exposing that credential. */ export declare function createMcpBearerPrincipal(token: string): string; //# sourceMappingURL=http-auth.d.ts.map