(rowId: string, tokens: OAuthTokens)
| 177 | } |
| 178 | |
| 179 | export async function saveTokens(rowId: string, tokens: OAuthTokens): Promise<void> { |
| 180 | const encrypted = await encryptTokens(tokens) |
| 181 | await db |
| 182 | .update(mcpServerOauth) |
| 183 | .set({ tokens: encrypted, lastRefreshedAt: new Date(), updatedAt: new Date() }) |
| 184 | .where(eq(mcpServerOauth.id, rowId)) |
| 185 | } |
| 186 | |
| 187 | export async function saveCodeVerifier(rowId: string, verifier: string): Promise<void> { |
| 188 | const { encrypted } = await encryptSecret(verifier) |
nothing calls this directly
no test coverage detected