MCPcopy Index your code
hub / github.com/simstudioai/sim / isPasswordParameter

Function isPasswordParameter

apps/sim/tools/params.ts:881–896  ·  view source on GitHub ↗
(paramId: string)

Source from the content-addressed store, hash-verified

879 * Helper to check if a parameter should be treated as a password field
880 */
881export function isPasswordParameter(paramId: string): boolean {
882 const passwordFields = [
883 'password',
884 'apiKey',
885 'token',
886 'secret',
887 'key',
888 'credential',
889 'accessToken',
890 'refreshToken',
891 'botToken',
892 'authToken',
893 ]
894
895 return passwordFields.some((field) => paramId.toLowerCase().includes(field.toLowerCase()))
896}
897
898/**
899 * Formats parameter IDs into human-readable labels

Callers 2

params.test.tsFile · 0.90
renderParameterInputFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected