From 4c3c0019ab1953b3dab4c7103bab6f0dfdfe8718 Mon Sep 17 00:00:00 2001 From: nhienlam Date: Mon, 28 Oct 2024 13:35:37 -0700 Subject: [PATCH] Add support for setting custom hosting link domain in test app. --- packages/auth/demo/public/index.html | 5 +++++ packages/auth/demo/src/index.js | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/auth/demo/public/index.html b/packages/auth/demo/public/index.html index 030e730a835..78b14b8dd92 100644 --- a/packages/auth/demo/public/index.html +++ b/packages/auth/demo/public/index.html @@ -823,6 +823,11 @@ +
Mobile link
+
+ +
diff --git a/packages/auth/demo/src/index.js b/packages/auth/demo/src/index.js index 387e98799b4..876a345671a 100644 --- a/packages/auth/demo/src/index.js +++ b/packages/auth/demo/src/index.js @@ -49,8 +49,8 @@ import { signInWithCredential, signInWithCustomToken, signInWithEmailAndPassword, + signInWithEmailLink, TotpMultiFactorGenerator, - TotpSecret, unlink, updateEmail, updatePassword, @@ -995,6 +995,7 @@ function getActionCodeSettings() { const installApp = $('input[name=install-app]:checked').val() === 'Yes'; const handleCodeInApp = $('input[name=handle-in-app]:checked').val() === 'Yes'; + const hostingLinkDomain = $('#hostingLinkDomain').val(); if (url || apn || ibi) { actionCodeSettings['url'] = url; if (apn) { @@ -1010,6 +1011,9 @@ function getActionCodeSettings() { }; } actionCodeSettings['handleCodeInApp'] = handleCodeInApp; + if (hostingLinkDomain) { + actionCodeSettings['linkDomain'] = hostingLinkDomain; + } } return actionCodeSettings; } @@ -1020,6 +1024,7 @@ function onActionCodeSettingsReset() { $('#apn').val(''); $('#amv').val(''); $('#ibi').val(''); + $('#hostingLinkDomain').val(''); } /**