-
- {t('createTool.authMethod.key', { ns: 'tools' })}
-
- {t('createTool.authMethod.keyTooltip', { ns: 'tools' })}
-
-
-
setTempCredential({ ...tempCredential, api_key_header: e.target.value })}
- placeholder={t('createTool.authMethod.types.apiKeyPlaceholder', { ns: 'tools' })!}
- />
+ {t('createTool.authMethod.keyTooltip', { ns: 'tools' })}
+
-
+
+
{t('createTool.authMethod.value', { ns: 'tools' })}
+
setTempCredential({ ...tempCredential, api_key_value: e.target.value })}
+ placeholder={t('createTool.authMethod.types.apiValuePlaceholder', { ns: 'tools' })!}
+ />
+
+ >
+ )}
+ {tempCredential.auth_type === AuthType.apiKeyQuery && (
+ <>
+
+
+ {t('createTool.authMethod.queryParam', { ns: 'tools' })}
+
+ {t('createTool.authMethod.queryParamTooltip', { ns: 'tools' })}
+
- >
- )}
- {tempCredential.auth_type === AuthType.apiKeyQuery && (
- <>
-
-
- {t('createTool.authMethod.queryParam', { ns: 'tools' })}
-
- {t('createTool.authMethod.queryParamTooltip', { ns: 'tools' })}
-
-
-
setTempCredential({ ...tempCredential, api_key_query_param: e.target.value })}
- placeholder={t('createTool.authMethod.types.queryParamPlaceholder', { ns: 'tools' })!}
- />
-
-
-
{t('createTool.authMethod.value', { ns: 'tools' })}
-
setTempCredential({ ...tempCredential, api_key_value: e.target.value })}
- placeholder={t('createTool.authMethod.types.apiValuePlaceholder', { ns: 'tools' })!}
- />
-
- >
- )}
-
-