From 2880eb0f9959e9ba1c087c34731a39f2c96a9be6 Mon Sep 17 00:00:00 2001 From: Kevin Cheung Date: Tue, 22 Oct 2024 15:48:46 -0700 Subject: [PATCH] Update email link snippets --- .../AuthenticationExample/PasswordlessViewController.m | 1 + .../AuthenticationExampleSwift/PasswordlessViewController.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/authentication/LegacyAuthQuickstart/AuthenticationExample/PasswordlessViewController.m b/authentication/LegacyAuthQuickstart/AuthenticationExample/PasswordlessViewController.m index dbe167c69..a5a12e2d0 100644 --- a/authentication/LegacyAuthQuickstart/AuthenticationExample/PasswordlessViewController.m +++ b/authentication/LegacyAuthQuickstart/AuthenticationExample/PasswordlessViewController.m @@ -70,6 +70,7 @@ - (IBAction)didTapSendSignInLink:(id)sender { [actionCodeSettings setURL:[NSURL URLWithString:@"https://www.example.com"]]; // The sign-in operation has to always be completed in the app. actionCodeSettings.handleCodeInApp = YES; + actionCodeSettings.linkDomain = @"your.custom.domain.com"; [actionCodeSettings setIOSBundleID:[[NSBundle mainBundle] bundleIdentifier]]; [actionCodeSettings setAndroidPackageName:@"com.example.android" installIfNotAvailable:NO diff --git a/authentication/LegacyAuthQuickstart/AuthenticationExampleSwift/PasswordlessViewController.swift b/authentication/LegacyAuthQuickstart/AuthenticationExampleSwift/PasswordlessViewController.swift index b20fa588e..d91c15eea 100644 --- a/authentication/LegacyAuthQuickstart/AuthenticationExampleSwift/PasswordlessViewController.swift +++ b/authentication/LegacyAuthQuickstart/AuthenticationExampleSwift/PasswordlessViewController.swift @@ -66,6 +66,7 @@ class PasswordlessViewController: UIViewController { actionCodeSettings.url = URL(string: "https://www.example.com") // The sign-in operation has to always be completed in the app. actionCodeSettings.handleCodeInApp = true + actionCodeSettings.linkDomain = "your.custom.domain.com" actionCodeSettings.setIOSBundleID(Bundle.main.bundleIdentifier!) actionCodeSettings.setAndroidPackageName("com.example.android", installIfNotAvailable: false, minimumVersion: "12")