From 4ac08f94fb7c2db4244491ffcedcb24ae66bd90a Mon Sep 17 00:00:00 2001 From: nhienlam Date: Fri, 31 Jan 2025 00:07:22 -0800 Subject: [PATCH 1/2] Update email link auth snippet to remove FDL --- auth-next/email-link-auth.js | 3 ++- .../email-link-auth/auth_email_link_actioncode_settings.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/auth-next/email-link-auth.js b/auth-next/email-link-auth.js index 4748e699..d959f4b5 100644 --- a/auth-next/email-link-auth.js +++ b/auth-next/email-link-auth.js @@ -19,7 +19,8 @@ function emailLinkActionCodeSettings() { installApp: true, minimumVersion: '12' }, - dynamicLinkDomain: 'example.page.link' + // The domain must be configured in Firebase Hosting and owned by the project. + linkDomain: 'example.com' }; // [END auth_email_link_actioncode_settings] } diff --git a/snippets/auth-next/email-link-auth/auth_email_link_actioncode_settings.js b/snippets/auth-next/email-link-auth/auth_email_link_actioncode_settings.js index a1480a11..a2547af2 100644 --- a/snippets/auth-next/email-link-auth/auth_email_link_actioncode_settings.js +++ b/snippets/auth-next/email-link-auth/auth_email_link_actioncode_settings.js @@ -19,6 +19,7 @@ const actionCodeSettings = { installApp: true, minimumVersion: '12' }, - dynamicLinkDomain: 'example.page.link' + // The domain must be configured in Firebase Hosting and owned by the project. + linkDomain: 'example.com' }; // [END auth_email_link_actioncode_settings_modular] \ No newline at end of file From 6c5d8e1b3e6c15b1d33bf92c5859a0a9a027a35f Mon Sep 17 00:00:00 2001 From: nhienlam Date: Fri, 31 Jan 2025 09:48:07 -0800 Subject: [PATCH 2/2] Update custom domain example --- auth-next/email-link-auth.js | 2 +- .../email-link-auth/auth_email_link_actioncode_settings.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/auth-next/email-link-auth.js b/auth-next/email-link-auth.js index d959f4b5..fde67663 100644 --- a/auth-next/email-link-auth.js +++ b/auth-next/email-link-auth.js @@ -20,7 +20,7 @@ function emailLinkActionCodeSettings() { minimumVersion: '12' }, // The domain must be configured in Firebase Hosting and owned by the project. - linkDomain: 'example.com' + linkDomain: 'custom-domain.com' }; // [END auth_email_link_actioncode_settings] } diff --git a/snippets/auth-next/email-link-auth/auth_email_link_actioncode_settings.js b/snippets/auth-next/email-link-auth/auth_email_link_actioncode_settings.js index a2547af2..010b5c09 100644 --- a/snippets/auth-next/email-link-auth/auth_email_link_actioncode_settings.js +++ b/snippets/auth-next/email-link-auth/auth_email_link_actioncode_settings.js @@ -20,6 +20,6 @@ const actionCodeSettings = { minimumVersion: '12' }, // The domain must be configured in Firebase Hosting and owned by the project. - linkDomain: 'example.com' + linkDomain: 'custom-domain.com' }; // [END auth_email_link_actioncode_settings_modular] \ No newline at end of file