(rowId: string)
| 222 | } |
| 223 | |
| 224 | export 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 |
no test coverage detected