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

Function saveCodeVerifier

apps/sim/lib/mcp/oauth/storage.ts:187–193  ·  view source on GitHub ↗
(rowId: string, verifier: string)

Source from the content-addressed store, hash-verified

185}
186
187export async function saveCodeVerifier(rowId: string, verifier: string): Promise<void> {
188 const { encrypted } = await encryptSecret(verifier)
189 await db
190 .update(mcpServerOauth)
191 .set({ codeVerifier: encrypted, updatedAt: new Date() })
192 .where(eq(mcpServerOauth.id, rowId))
193}
194
195export async function saveState(rowId: string, state: string): Promise<void> {
196 const now = new Date()

Callers

nothing calls this directly

Calls 3

encryptSecretFunction · 0.90
setMethod · 0.65
eqFunction · 0.50

Tested by

no test coverage detected