Skip to content

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

Correct missing await in auth-email-templates.mdx (#18030)

Ryan Miller882dab30f901
diff --git a/apps/docs/pages/guides/auth/auth-email-templates.mdx b/apps/docs/pages/guides/auth/auth-email-templates.mdx
index 30dccd9321b..8be152dbf58 100644
--- a/apps/docs/pages/guides/auth/auth-email-templates.mdx
+++ b/apps/docs/pages/guides/auth/auth-email-templates.mdx
@@ -64,7 +64,7 @@ When the user clicks on the link, the request will hit `https://api.example.com/
```js
const { token_hash, type } = Object.fromEntries(new URLSearchParams(window.location.search))
-const { data: { session }, error } = supabase.auth.verifyOtp({ token_hash, type })
+const { data: { session }, error } = await supabase.auth.verifyOtp({ token_hash, type })
// subsequently redirect the user back to the client
// ...