MCPcopy Index your code
hub / github.com/simstudioai/sim / encryptClientInformation

Function encryptClientInformation

apps/sim/lib/mcp/oauth/storage.ts:42–45  ·  view source on GitHub ↗
(info: OAuthClientInformationMixed)

Source from the content-addressed store, hash-verified

40}
41
42async function encryptClientInformation(info: OAuthClientInformationMixed): Promise<string> {
43 const { encrypted } = await encryptSecret(JSON.stringify(info))
44 return encrypted
45}
46
47/**
48 * Returns `null` and clears the column when decryption fails (e.g. key rotation)

Callers 1

saveClientInformationFunction · 0.85

Calls 1

encryptSecretFunction · 0.90

Tested by

no test coverage detected