Skip to content

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

fix: update email template message variables (#10650)

Kang Ming61839099cae4
diff --git a/studio/stores/authConfig/schema/AuthProviders/AuthTemplatesValidation.tsx b/studio/stores/authConfig/schema/AuthProviders/AuthTemplatesValidation.tsx
index 9cfa51468a0..82320e55bd9 100644
--- a/studio/stores/authConfig/schema/AuthProviders/AuthTemplatesValidation.tsx
+++ b/studio/stores/authConfig/schema/AuthProviders/AuthTemplatesValidation.tsx
@@ -19,6 +19,8 @@ export const CONFIRMATION: FormSchema = {
type: 'code',
description: `
- \`{{ .ConfirmationURL }}\` : URL to confirm the message
+- \`{{ .Token }}\` : The 6-digit numeric email OTP
+- \`{{ .TokenHash }}\` : The hashed token used in the URL
`,
},
},
@@ -48,6 +50,8 @@ export const INVITE: FormSchema = {
type: 'code',
description: `
- \`{{ .ConfirmationURL }}\` : URL to confirm the message
+- \`{{ .Token }}\` : The 6-digit numeric email OTP
+- \`{{ .TokenHash }}\` : The hashed token used in the URL
`,
},
},
@@ -77,6 +81,8 @@ export const MAGIC_LINK: FormSchema = {
type: 'code',
description: `
- \`{{ .ConfirmationURL }}\` : URL to confirm the message
+- \`{{ .Token }}\` : The 6-digit numeric email OTP
+- \`{{ .TokenHash }}\` : The hashed token used in the URL
`,
},
},
@@ -106,6 +112,8 @@ export const EMAIL_CHANGE: FormSchema = {
type: 'code',
description: `
- \`{{ .ConfirmationURL }}\` : URL to confirm the email change
+- \`{{ .Token }}\` : The 6-digit numeric email OTP
+- \`{{ .TokenHash }}\` : The hashed token used in the URL
`,
},
},
@@ -135,6 +143,8 @@ export const RECOVERY: FormSchema = {
type: 'code',
description: `
- \`{{ .ConfirmationURL }}\` : URL to confirm the password reset
+- \`{{ .Token }}\` : The 6-digit numeric email OTP
+- \`{{ .TokenHash }}\` : The hashed token used in the URL
`,
},
},