( rowId: string, info: OAuthClientInformationMixed )
| 166 | } |
| 167 | |
| 168 | export async function saveClientInformation( |
| 169 | rowId: string, |
| 170 | info: OAuthClientInformationMixed |
| 171 | ): Promise<void> { |
| 172 | const encrypted = await encryptClientInformation(info) |
| 173 | await db |
| 174 | .update(mcpServerOauth) |
| 175 | .set({ clientInformation: encrypted, updatedAt: new Date() }) |
| 176 | .where(eq(mcpServerOauth.id, rowId)) |
| 177 | } |
| 178 | |
| 179 | export async function saveTokens(rowId: string, tokens: OAuthTokens): Promise<void> { |
| 180 | const encrypted = await encryptTokens(tokens) |
nothing calls this directly
no test coverage detected