Skip to content

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

update hcaptcha payload field name

Alaister Young42f42c934d2e
diff --git a/package-lock.json b/package-lock.json
index 0cd1f9d8853..35eb56bebc3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -61392,7 +61392,7 @@
"version": "file:studio",
"requires": {
"@babel/core": "^7.17.5",
- "@hcaptcha/react-hcaptcha": "*",
+ "@hcaptcha/react-hcaptcha": "^1.4.4",
"@headlessui/react": "^1.4.1",
"@monaco-editor/react": "^4.3.1",
"@next/bundle-analyzer": "^12.0.4",
diff --git a/studio/components/interfaces/SignIn/ForgotPasswordForm.tsx b/studio/components/interfaces/SignIn/ForgotPasswordForm.tsx
index a2f81b2d311..63731b92854 100644
--- a/studio/components/interfaces/SignIn/ForgotPasswordForm.tsx
+++ b/studio/components/interfaces/SignIn/ForgotPasswordForm.tsx
@@ -32,7 +32,7 @@ const ForgotPasswordForm = () => {
const response = await post(`${API_URL}/reset-password`, {
email,
- captchaToken: token ?? undefined,
+ hcaptchaToken: token ?? undefined,
})
const error = response.error
diff --git a/studio/components/interfaces/SignIn/SignUpForm.tsx b/studio/components/interfaces/SignIn/SignUpForm.tsx
index 70e0f070ce8..283b02409ed 100644
--- a/studio/components/interfaces/SignIn/SignUpForm.tsx
+++ b/studio/components/interfaces/SignIn/SignUpForm.tsx
@@ -36,7 +36,7 @@ const SignUpForm = () => {
const response = await post(`${API_URL}/signup`, {
email,
password,
- captchaToken: token ?? null,
+ hcaptchaToken: token ?? null,
})
const error = response.error