diff --git a/apps/studio/components/interfaces/Auth/Hooks/hooks.constants.ts b/apps/studio/components/interfaces/Auth/Hooks/hooks.constants.ts
index a120817513b..7002b60ab4e 100644
--- a/apps/studio/components/interfaces/Auth/Hooks/hooks.constants.ts
+++ b/apps/studio/components/interfaces/Auth/Hooks/hooks.constants.ts
@@ -6,6 +6,7 @@ export const HOOKS_DEFINITIONS = [
uriKey: 'HOOK_SEND_SMS_URI',
secretsKey: 'HOOK_SEND_SMS_SECRETS',
enterprise: false,
+ docSlug: 'send-sms-hook',
},
{
title: 'Send Email hook',
@@ -14,6 +15,7 @@ export const HOOKS_DEFINITIONS = [
uriKey: 'HOOK_SEND_EMAIL_URI',
secretsKey: 'HOOK_SEND_EMAIL_SECRETS',
enterprise: false,
+ docSlug: 'send-email-hook',
},
{
title: 'Customize Access Token (JWT) Claims hook',
@@ -23,6 +25,7 @@ export const HOOKS_DEFINITIONS = [
uriKey: 'HOOK_CUSTOM_ACCESS_TOKEN_URI',
secretsKey: 'HOOK_CUSTOM_ACCESS_TOKEN_SECRETS',
enterprise: false,
+ docSlug: 'custom-access-token-hook',
},
{
title: 'MFA Verification Attempt hook',
@@ -32,6 +35,7 @@ export const HOOKS_DEFINITIONS = [
uriKey: 'HOOK_MFA_VERIFICATION_ATTEMPT_URI',
secretsKey: 'HOOK_MFA_VERIFICATION_ATTEMPT_SECRETS',
enterprise: true,
+ docSlug: 'mfa-verification-hook',
},
{
title: 'Password Verification Attempt hook',
@@ -41,6 +45,17 @@ export const HOOKS_DEFINITIONS = [
uriKey: 'HOOK_PASSWORD_VERIFICATION_ATTEMPT_URI',
secretsKey: 'HOOK_PASSWORD_VERIFICATION_ATTEMPT_SECRETS',
enterprise: true,
+ docSlug: 'password-verification-hook',
+ },
+ {
+ title: 'Before User Created hook',
+ subtitle:
+ 'Will be called by Supabase Auth before creating a new user. Returning an error will prevent the user from being created.',
+ enabledKey: 'HOOK_BEFORE_USER_CREATED_ENABLED',
+ uriKey: 'HOOK_BEFORE_USER_CREATED_URI',
+ secretsKey: 'HOOK_BEFORE_USER_CREATED_SECRETS',
+ enterprise: false,
+ docSlug: 'before-user-created-hook',
},
] as const
@@ -53,6 +68,7 @@ export interface Hook {
enabledKey: string
uriKey: string
secretsKey: string
+ docSlug: string
method:
| { type: 'postgres'; schema: string; functionName: string }
| { type: 'https'; url: string; secret: string }
diff --git a/apps/studio/pages/project/[ref]/auth/hooks.tsx b/apps/studio/pages/project/[ref]/auth/hooks.tsx
index 09215e8aa33..b9e6e60e5f1 100644
--- a/apps/studio/pages/project/[ref]/auth/hooks.tsx
+++ b/apps/studio/pages/project/[ref]/auth/hooks.tsx
@@ -8,6 +8,7 @@ import { ScaffoldContainer } from 'components/layouts/Scaffold'
import NoPermission from 'components/ui/NoPermission'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks/misc/useCheckPermissions'
import type { NextPageWithLayout } from 'types'
+import { DocsButton } from 'components/ui/DocsButton'
const Hooks: NextPageWithLayout = () => {
const canReadAuthSettings = useCheckPermissions(PermissionAction.READ, 'custom_config_gotrue')
@@ -23,6 +24,9 @@ const Hooks: NextPageWithLayout = () => {
)
}
+const secondaryActions = [
+
,
+]
Hooks.getLayout = (page) => (
@@ -30,6 +34,7 @@ Hooks.getLayout = (page) => (
{page}
diff --git a/supa-mdx-lint/Rule003Spelling.toml b/supa-mdx-lint/Rule003Spelling.toml
index cda1c7fc545..db481b95d52 100644
--- a/supa-mdx-lint/Rule003Spelling.toml
+++ b/supa-mdx-lint/Rule003Spelling.toml
@@ -326,6 +326,7 @@ allow_list = [
"sessionStorage",
"stdin",
"stdout",
+ "[Ss]ubnet(s)?",
"[Ss]ubpage",
"supabase-auth-ui",
"supabase-csharp",