Files
dify/web/app/components/plugins/plugin-auth/utils.ts
2025-07-17 17:18:44 +08:00

11 lines
348 B
TypeScript

export const transformFormSchemasSecretInput = (isPristineSecretInputNames: string[], values: Record<string, any>) => {
const transformedValues: Record<string, any> = { ...values }
isPristineSecretInputNames.forEach((name) => {
if (transformedValues[name])
transformedValues[name] = '[__HIDDEN__]'
})
return transformedValues
}