Skip to content

Commit fbd0d4f

Browse files
removed unused logic for force same device for now
1 parent 3f796c6 commit fbd0d4f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Services/AuthService.swift

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ public extension AuthService {
302302
func handleSignInLink(url url: URL) async throws {
303303
do {
304304
guard let email = emailLink else {
305-
throw AuthServiceError.invalidEmailLink("email address is missing from app storage. Is this the same device?")
305+
throw AuthServiceError
306+
.invalidEmailLink("email address is missing from app storage. Is this the same device?")
306307
}
307308
let link = url.absoluteString
308309
guard let continueUrl = CommonUtils.getQueryParamValue(from: link, paramName: "continueUrl")
@@ -352,11 +353,6 @@ public extension AuthService {
352353
}
353354
}
354355

355-
// We don't have config for forceSameDevice so it is set as default
356-
let forceSameDevice = "1"
357-
let sameDeviceItem = URLQueryItem(name: "ui_sd", value: forceSameDevice)
358-
queryItems.append(sameDeviceItem)
359-
360356
urlComponents.queryItems = queryItems
361357
if let finalURL = urlComponents.url {
362358
actionCodeSettings.url = finalURL

0 commit comments

Comments
 (0)