Skip to content

Commit be11a76

Browse files
committed
custom domain test
1 parent 59f7153 commit be11a76

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

FirebaseAuth/Tests/SampleSwift/AuthenticationExample/ViewControllers/OtherAuthMethodControllers/PasswordlessViewController.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ class PasswordlessViewController: OtherAuthViewController {
3131

3232
// MARK: - Firebase 🔥
3333

34-
private let authorizedDomain: String = "fir-ios-auth-sample.firebaseapp.com"
35-
private let customDomain: String = "ENTER AUTHORIZED HOSTING DOMAIN"
34+
private let authorizedDomain: String =
35+
"fir-ios-auth-sample.firebaseapp.com" // Enter AUTHORIZED_DOMAIN
36+
private let customDomain: String =
37+
"firebaseiosauthsample.testdomaindonotuse.com" // Enter AUTHORIZED_HOSTING_DOMAIN
3638

3739
private func sendSignInLink(to email: String) {
3840
let actionCodeSettings = ActionCodeSettings()
@@ -43,7 +45,7 @@ class PasswordlessViewController: OtherAuthViewController {
4345
// The sign-in operation must be completed in the app.
4446
actionCodeSettings.handleCodeInApp = true
4547
actionCodeSettings.setIOSBundleID(Bundle.main.bundleIdentifier!)
46-
// actionCodeSettings.linkDomain = customDomain
48+
actionCodeSettings.linkDomain = customDomain
4749

4850
AppManager.shared.auth()
4951
.sendSignInLink(toEmail: email, actionCodeSettings: actionCodeSettings) { error in

FirebaseAuth/Tests/SampleSwift/AuthenticationExampleUITests/AuthenticationExampleUITests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class AuthenticationExampleUITests: XCTestCase {
232232
let testEmail = "[email protected]"
233233
app.textFields["Enter Authentication Email"].tap()
234234
app.textFields["Enter Authentication Email"].typeText(testEmail)
235-
// app.buttons["return"].tap() // Dismiss keyboard
235+
app.buttons["return"].tap() // Dismiss keyboard
236236
app.buttons["Send Sign In Link"].tap()
237237

238238
// Wait for the error message to appear (if there is an error)

0 commit comments

Comments
 (0)