@capgo/cli
Version:
A CLI to upload to capgo servers
9 lines (8 loc) • 466 B
TypeScript
/**
* Local checks parse credential blobs synchronously (node-forge), so the
* engine's async timeout cannot bound them: a corrupted or accidentally huge
* saved credential would freeze the CLI for minutes with multi-GB memory
* amplification. Refuse anything over a sane ceiling before decoding.
*/
export declare const MAX_CREDENTIAL_B64_CHARS: number;
export declare function assertCredentialBlobSize(base64: string, what: 'certificate' | 'keystore'): void;