From 3d6dc9750ff4b81051a3f78c103b013737cba160 Mon Sep 17 00:00:00 2001 From: dannykng Date: Fri, 28 Oct 2022 11:51:30 -0700 Subject: [PATCH 1/3] Fix build issue --- spec/supabase_js_v2.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.yml index cd85376edfc..2bce4c9adc0 100644 --- a/spec/supabase_js_v2.yml +++ b/spec/supabase_js_v2.yml @@ -611,9 +611,7 @@ pages: email: 'current.email@example.com', newEmail: 'new.email@example.com' }) - ``` - js: | - ```js + const { data, error } = await supabase.auth.admin.generateLink({ type: 'email_change_new', email: 'current.email@example.com', From 079afd21080add12580090d3e4cae53f3a722e31 Mon Sep 17 00:00:00 2001 From: dng Date: Fri, 28 Oct 2022 11:59:38 -0700 Subject: [PATCH 2/3] Update spec/supabase_js_v2.yml Co-authored-by: Kang Ming --- spec/supabase_js_v2.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.yml index 2bce4c9adc0..3074d777e12 100644 --- a/spec/supabase_js_v2.yml +++ b/spec/supabase_js_v2.yml @@ -612,6 +612,7 @@ pages: newEmail: 'new.email@example.com' }) + // generate an email change link to be sent to the new email address const { data, error } = await supabase.auth.admin.generateLink({ type: 'email_change_new', email: 'current.email@example.com', From f5f8f0fb198dcd838b5034134461cb530aa2e6a9 Mon Sep 17 00:00:00 2001 From: Kang Ming Date: Fri, 28 Oct 2022 12:00:39 -0700 Subject: [PATCH 3/3] add comment for generating email change link --- spec/supabase_js_v2.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.yml index 3074d777e12..633c7adb202 100644 --- a/spec/supabase_js_v2.yml +++ b/spec/supabase_js_v2.yml @@ -606,6 +606,7 @@ pages: isSpotlight: false js: | ```js + // generate an email change link to be sent to the current email address const { data, error } = await supabase.auth.admin.generateLink({ type: 'email_change_current', email: 'current.email@example.com',