Skip to content

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

fix auth config settings hcaptcha secret label

Joshen Lim9d24374e6bc5
diff --git a/studio/components/interfaces/Auth/AutoSchemaForm.tsx b/studio/components/interfaces/Auth/AutoSchemaForm.tsx
index d93412c1d28..614f22634f8 100644
--- a/studio/components/interfaces/Auth/AutoSchemaForm.tsx
+++ b/studio/components/interfaces/Auth/AutoSchemaForm.tsx
@@ -1,7 +1,7 @@
-import { Form, Input, InputNumber, Toggle } from '@supabase/ui'
-import { useEffect } from 'react'
+import { useEffect, useState } from 'react'
import { observer } from 'mobx-react-lite'
import { boolean, number, object, string } from 'yup'
+import { Button, Form, Input, IconEye, IconEyeOff, InputNumber, Toggle } from '@supabase/ui'
import { useStore } from 'hooks'
import {
@@ -18,6 +18,7 @@ const AutoSchemaForm = observer(() => {
const { isLoaded } = authConfig
const formId = 'auth-config-general-form'
+ const [hidden, setHidden] = useState(true)
const INITIAL_VALUES = {
DISABLE_SIGNUP: !authConfig.config.DISABLE_SIGNUP,
@@ -149,9 +150,16 @@ const AutoSchemaForm = observer(() => {
{values.SECURITY_CAPTCHA_ENABLED && (
<Input
id="SECURITY_CAPTCHA_SECRET"
+ type={hidden ? 'password' : 'text'}
size="small"
- label="hCaptcha sitekey"
- descriptionText="hCaptcha secret (sitekey)"
+ label="hCaptcha secret"
+ actions={
+ <Button
+ icon={hidden ? <IconEye /> : <IconEyeOff />}
+ type="default"
+ onClick={() => setHidden(!hidden)}
+ />
+ }
/>
)}
</FormSectionContent>