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

Function encryptTokens

apps/sim/lib/mcp/oauth/storage.ts:37–40  ·  view source on GitHub ↗
(tokens: OAuthTokens)

Source from the content-addressed store, hash-verified

35}
36
37async function encryptTokens(tokens: OAuthTokens): Promise<string> {
38 const { encrypted } = await encryptSecret(JSON.stringify(tokens))
39 return encrypted
40}
41
42async function encryptClientInformation(info: OAuthClientInformationMixed): Promise<string> {
43 const { encrypted } = await encryptSecret(JSON.stringify(info))

Callers 1

saveTokensFunction · 0.85

Calls 1

encryptSecretFunction · 0.90

Tested by

no test coverage detected