UNPKG

@civic/nexus-bridge

Version:

Stdio <-> HTTP/SSE MCP bridge with Civic auth handling

16 lines 565 B
/** * encryption.ts * * Utilities for encrypting and decrypting sensitive data like tokens * when passing them between services. */ /** * Encrypts a token using JOSE JWE format (which handles hybrid encryption internally) * This handles tokens of any size by using RSA to encrypt a symmetric key * and using that symmetric key to encrypt the actual token. * * @param token The token to encrypt * @returns Compact JWE format encrypted token */ export declare function encryptToken(token: string): Promise<string>; //# sourceMappingURL=encryption.d.ts.map