UNPKG

@gguf/claw

Version:

Multi-channel AI gateway with extensible messaging integrations

12 lines (11 loc) 501 B
/** * Secret normalization for copy/pasted credentials. * * Common footgun: line breaks (especially `\r`) embedded in API keys/tokens. * We strip line breaks anywhere, then trim whitespace at the ends. * * Intentionally does NOT remove ordinary spaces inside the string to avoid * silently altering "Bearer <token>" style values. */ export declare function normalizeSecretInput(value: unknown): string; export declare function normalizeOptionalSecretInput(value: unknown): string | undefined;