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

Function loadOauthRow

apps/sim/lib/mcp/oauth/storage.ts:136–144  ·  view source on GitHub ↗
(params: { mcpServerId: string })

Source from the content-addressed store, hash-verified

134}
135
136export async function loadOauthRow(params: { mcpServerId: string }): Promise<McpOauthRow | null> {
137 const [row] = await db
138 .select()
139 .from(mcpServerOauth)
140 .where(eq(mcpServerOauth.mcpServerId, params.mcpServerId))
141 .limit(1)
142 if (!row) return null
143 return mapOauthRow(row)
144}
145
146export async function setOauthRowUser(rowId: string, userId: string): Promise<void> {
147 await db

Callers 3

storage.test.tsFile · 0.90
revokeMcpOauthTokensFunction · 0.90
getOrCreateOauthRowFunction · 0.85

Calls 2

mapOauthRowFunction · 0.85
eqFunction · 0.50

Tested by

no test coverage detected