Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix auth providers string fields are all considered sensitive (#44345)

Gildas Garcia580a1f972b55
diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx
index 4f7d0cf7412..a33f4ddb2fb 100644
--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx
+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx
@@ -166,16 +166,20 @@ const FormField = ({
}
className="w-full"
>
- <DataInput
- {...field}
- type={properties.isSecret ? 'password' : 'text'}
- id={name}
- size="small"
- copy
- reveal
- />
+ {properties.isSecret ? (
+ <DataInput
+ {...field}
+ type={properties.isSecret ? 'password' : 'text'}
+ id={name}
+ size="small"
+ copy
+ reveal
+ />
+ ) : (
+ <Input_Shadcn_ {...field} id={name} />
+ )}
</PrePostTab>
- ) : (
+ ) : properties.isSecret ? (
<DataInput
{...field}
type={properties.isSecret ? 'password' : 'text'}
@@ -184,6 +188,8 @@ const FormField = ({
copy
reveal
/>
+ ) : (
+ <Input_Shadcn_ {...field} id={name} />
)}
</FormControl_Shadcn_>
</FormItemLayout>