Skip to content

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

docs: add note on converting magic link templates to OTP

Stojan Dimitrovski616d812a6d6d
diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.yml
index 425ad812fc4..ee991a3b970 100644
--- a/spec/supabase_js_v2.yml
+++ b/spec/supabase_js_v2.yml
@@ -217,6 +217,7 @@ functions:
- If you're using phone, you can configure whether you want the user to receive a OTP.
- The magic link's destination URL is determined by the [`SITE_URL`](/docs/reference/auth/config#site_url).
- See [redirect URLs and wildcards](/docs/guides/auth/overview#redirect-urls-and-wildcards) to add additional redirect URLs to your project.
+ - Magic links and OTPs share the same implementation. If you wish to send users a one-time-code instead of a magic link, you should [modify the magic link email temlate](https://app.supabase.com/project/_/auth/templates) to include `{{ .Token }}` instead of `{{ .ConfirmationURL }}`.
examples:
- id: sign-in-with-email
name: Sign in with email