Skip to content

Commit ed8b815

Browse files
authored
[Auth] Remove wrapper API that uses deprecated Auth API (#15060)
1 parent 797f8c7 commit ed8b815

File tree

3 files changed

+4
-118
lines changed

3 files changed

+4
-118
lines changed

FirebaseCombineSwift/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 12.0.0
2+
- [removed] Removed `fetchSignInMethods` Combine wrapper as the underlying API
3+
is deprecated.
4+
15
# 10.8.0
26
- [fixed] Use caller's encoder when setting document data (#11033).
37

FirebaseCombineSwift/Sources/Auth/Auth+Combine.swift

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -259,31 +259,6 @@ public extension Auth {
259259
}
260260
}
261261

262-
// MARK: - Email-based Authentication Helpers
263-
264-
/// Fetches the list of all sign-in methods previously used for the provided email address.
265-
///
266-
/// The publisher will emit events on the **main** thread.
267-
///
268-
/// - Parameter email: The email address for which to obtain a list of sign-in methods.
269-
/// - Returns: A publisher that emits a list of sign-in methods for the specified email
270-
/// address, or an error if one occurred. The publisher will emit on the *main* thread.
271-
/// - Remark: Possible error codes:
272-
/// - `AuthErrorCodeInvalidEmail` - Indicates the email address is malformed.
273-
///
274-
/// See `AuthErrors` for a list of error codes that are common to all API methods
275-
func fetchSignInMethods(forEmail email: String) -> Future<[String], Error> {
276-
Future<[String], Error> { promise in
277-
self.fetchSignInMethods(forEmail: email) { signInMethods, error in
278-
if let error {
279-
promise(.failure(error))
280-
} else if let signInMethods {
281-
promise(.success(signInMethods))
282-
}
283-
}
284-
}
285-
}
286-
287262
// MARK: - Password Reset
288263

289264
/// Resets the password given a code sent to the user outside of the app and a new password for

FirebaseCombineSwift/Tests/Unit/Auth/FetchSignInMethodsTests.swift

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)