Skip to content

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

fix(docs): Clarify auth.admin.generateLink does not send emails or OTPs (#39665)

Timothy Limf68bf01f3b55
diff --git a/apps/docs/features/docs/__snapshots__/Reference.typeSpec.test.ts.snap b/apps/docs/features/docs/__snapshots__/Reference.typeSpec.test.ts.snap
index 00fecd84440..3ef80a4ab51 100644
--- a/apps/docs/features/docs/__snapshots__/Reference.typeSpec.test.ts.snap
+++ b/apps/docs/features/docs/__snapshots__/Reference.typeSpec.test.ts.snap
@@ -42109,7 +42109,7 @@ exports[`TS type spec parsing > matches snapshot 1`] = `
}
},
"comment": {
- "shortText": "Generates email links and OTPs to be sent via a custom email provider."
+ "shortText": "Generates email links and OTPs. This will not send links or OTPs to the end user. This function is for custom admin functionality."
}
},
"@supabase/auth-js.GoTrueAdminApi.getUserById": {
diff --git a/apps/docs/spec/enrichments/tsdoc_v2/combined.json b/apps/docs/spec/enrichments/tsdoc_v2/combined.json
index 7c2277b16e8..0961a32b0a7 100644
--- a/apps/docs/spec/enrichments/tsdoc_v2/combined.json
+++ b/apps/docs/spec/enrichments/tsdoc_v2/combined.json
@@ -65068,7 +65068,7 @@
"summary": [
{
"kind": "text",
- "text": "Generates email links and OTPs to be sent via a custom email provider."
+ "text": "Generates email links and OTPs. This will not send links or OTPs to the end user. This function is for custom admin functionality."
}
]
},
diff --git a/apps/docs/spec/enrichments/tsdoc_v2/combined_raw.json b/apps/docs/spec/enrichments/tsdoc_v2/combined_raw.json
index a8e0cbb5a2d..9e2f73cc033 100644
--- a/apps/docs/spec/enrichments/tsdoc_v2/combined_raw.json
+++ b/apps/docs/spec/enrichments/tsdoc_v2/combined_raw.json
@@ -6309,7 +6309,7 @@
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Generates email links and OTPs to be sent via a custom email provider."
+ "shortText": "Generates email links and OTPs. This will not send links or OTPs to the end user. This function is for custom admin functionality."
},
"parameters": [
{
diff --git a/apps/docs/spec/enrichments/tsdoc_v2/gotrue.json b/apps/docs/spec/enrichments/tsdoc_v2/gotrue.json
index bcc6eca3d27..98811c5a188 100644
--- a/apps/docs/spec/enrichments/tsdoc_v2/gotrue.json
+++ b/apps/docs/spec/enrichments/tsdoc_v2/gotrue.json
@@ -4413,7 +4413,7 @@
"summary": [
{
"kind": "text",
- "text": "Generates email links and OTPs to be sent via a custom email provider."
+ "text": "Generates email links and OTPs. This will not send links or OTPs to the end user. This function is for custom admin functionality."
}
]
},
diff --git a/apps/docs/spec/enrichments/tsdoc_v2/gotrue_dereferenced.json b/apps/docs/spec/enrichments/tsdoc_v2/gotrue_dereferenced.json
index bcc6eca3d27..98811c5a188 100644
--- a/apps/docs/spec/enrichments/tsdoc_v2/gotrue_dereferenced.json
+++ b/apps/docs/spec/enrichments/tsdoc_v2/gotrue_dereferenced.json
@@ -4413,7 +4413,7 @@
"summary": [
{
"kind": "text",
- "text": "Generates email links and OTPs to be sent via a custom email provider."
+ "text": "Generates email links and OTPs. This will not send links or OTPs to the end user. This function is for custom admin functionality."
}
]
},
diff --git a/apps/docs/spec/supabase_dart_v1.yml b/apps/docs/spec/supabase_dart_v1.yml
index a7d3326c000..a13ba8b73da 100644
--- a/apps/docs/spec/supabase_dart_v1.yml
+++ b/apps/docs/spec/supabase_dart_v1.yml
@@ -685,7 +685,7 @@ functions:
- id: generate-link
title: 'generateLink()'
notes: |
- Generates email links and OTPs to be sent via a custom email provider.
+ Generates email links and OTPs. This will not send links or OTPs to the end user. This function is for custom admin functionality.
- The following types can be passed into `generateLink()`: `signup`, `magiclink`, `invite`, `recovery`, `emailChangeCurrent`, `emailChangeNew`, `phoneChange`.
- `generateLink()` only generates the email link for `email_change_email` if the "Secure email change" setting is enabled under the "Email" provider in your Supabase project.
- `generateLink()` handles the creation of the user for `signup`, `invite` and `magiclink`.
diff --git a/apps/docs/spec/supabase_dart_v2.yml b/apps/docs/spec/supabase_dart_v2.yml
index 82de09cd49e..581856679b6 100644
--- a/apps/docs/spec/supabase_dart_v2.yml
+++ b/apps/docs/spec/supabase_dart_v2.yml
@@ -2428,7 +2428,7 @@ functions:
- id: generate-link
title: 'generateLink()'
notes: |
- Generates email links and OTPs to be sent via a custom email provider.
+ Generates email links and OTPs. This will not send links or OTPs to the end user. This function is for custom admin functionality.
- The following types can be passed into `generateLink()`: `signup`, `magiclink`, `invite`, `recovery`, `emailChangeCurrent`, `emailChangeNew`, `phoneChange`.
- `generateLink()` only generates the email link for `email_change_email` if the "Secure email change" setting is enabled under the "Email" provider in your Supabase project.
- `generateLink()` handles the creation of the user for `signup`, `invite` and `magiclink`.
diff --git a/apps/docs/spec/supabase_kt_v1.yml b/apps/docs/spec/supabase_kt_v1.yml
index a1f80811d36..02e8f5d02ec 100644
--- a/apps/docs/spec/supabase_kt_v1.yml
+++ b/apps/docs/spec/supabase_kt_v1.yml
@@ -2904,7 +2904,7 @@ functions:
title: 'generateLink()'
$ref: '@supabase/gotrue-js.GoTrueAdminApi.generateLink'
notes: |
- Generates email links and OTPs to be sent via a custom email provider.
+ Generates email links and OTPs. This will not send links or OTPs to the end user. This function is for custom admin functionality.
examples:
- id: generate-a-signup-link
name: Generate a signup link
diff --git a/apps/docs/spec/supabase_kt_v2.yml b/apps/docs/spec/supabase_kt_v2.yml
index 3285997fb15..cc66c3da5e4 100644
--- a/apps/docs/spec/supabase_kt_v2.yml
+++ b/apps/docs/spec/supabase_kt_v2.yml
@@ -4186,7 +4186,7 @@ functions:
title: 'generateLink()'
$ref: '@supabase/gotrue-js.GoTrueAdminApi.generateLink'
notes: |
- Generates email links and OTPs to be sent via a custom email provider.
+ Generates email links and OTPs. This will not send links or OTPs to the end user. This function is for custom admin functionality.
params:
- name: type
isOptional: false
diff --git a/apps/docs/spec/supabase_kt_v3.yml b/apps/docs/spec/supabase_kt_v3.yml
index 3cb465d3947..047700eea79 100644
--- a/apps/docs/spec/supabase_kt_v3.yml
+++ b/apps/docs/spec/supabase_kt_v3.yml
@@ -4271,7 +4271,7 @@ functions:
title: 'generateLink()'
$ref: '@supabase/gotrue-js.GoTrueAdminApi.generateLink'
notes: |
- Generates email links and OTPs to be sent via a custom email provider.
+ Generates email links and OTPs. This will not send links or OTPs to the end user. This function is for custom admin functionality.
params:
- name: type
isOptional: false