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

Function saveClientInformation

apps/sim/lib/mcp/oauth/storage.ts:168–177  ·  view source on GitHub ↗
(
  rowId: string,
  info: OAuthClientInformationMixed
)

Source from the content-addressed store, hash-verified

166}
167
168export async function saveClientInformation(
169 rowId: string,
170 info: OAuthClientInformationMixed
171): Promise<void> {
172 const encrypted = await encryptClientInformation(info)
173 await db
174 .update(mcpServerOauth)
175 .set({ clientInformation: encrypted, updatedAt: new Date() })
176 .where(eq(mcpServerOauth.id, rowId))
177}
178
179export async function saveTokens(rowId: string, tokens: OAuthTokens): Promise<void> {
180 const encrypted = await encryptTokens(tokens)

Callers

nothing calls this directly

Calls 3

encryptClientInformationFunction · 0.85
setMethod · 0.65
eqFunction · 0.50

Tested by

no test coverage detected