(rowId: string, verifier: string)
| 185 | } |
| 186 | |
| 187 | export 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 | |
| 195 | export async function saveState(rowId: string, state: string): Promise<void> { |
| 196 | const now = new Date() |
nothing calls this directly
no test coverage detected