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

Function clearState

apps/sim/lib/mcp/oauth/storage.ts:224–229  ·  view source on GitHub ↗
(rowId: string)

Source from the content-addressed store, hash-verified

222}
223
224export async function clearState(rowId: string): Promise<void> {
225 await db
226 .update(mcpServerOauth)
227 .set({ state: null, stateCreatedAt: null, updatedAt: new Date() })
228 .where(eq(mcpServerOauth.id, rowId))
229}
230
231/**
232 * Serialize OAuth row access across all callers, in-process AND across

Callers 2

invalidateCredentialsMethod · 0.90
route.tsFile · 0.90

Calls 2

setMethod · 0.65
eqFunction · 0.50

Tested by

no test coverage detected