Skip to content

Commit 0acb763

Browse files
authored
[Auth] Update unnecessary nullable API (#13252)
1 parent 910f068 commit 0acb763

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

FirebaseAuth/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- [added] Introduced the Swift enum `AuthProviderID` for the Auth Provider IDs. (#9236)
55
- [deprecated] Swift APIs using `String`-typed `productID`s have been deprecated in favor
66
of newly added API that leverages the `AuthProviderID` enum.
7+
- [fixed] Breaking API: The `email` property in `ActionCodeInfo` is now non-optional.
78

89
# 10.21.0
910
- [fixed] Fixed multifactor resolver to use the correct Auth instance instead of

FirebaseAuth/Sources/Swift/ActionCode/ActionCodeInfo.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import Foundation
2121

2222
/// The email address to which the code was sent. The new email address in the case of
2323
/// `ActionCodeOperation.recoverEmail`.
24-
@objc public let email: String?
24+
@objc public let email: String
2525

2626
/// The email that is being recovered in the case of `ActionCodeOperation.recoverEmail`.
2727
@objc public let previousEmail: String?

FirebaseAuth/Tests/Unit/SwiftAPI.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ class AuthAPI_hOnlyTests: XCTestCase {
6262
let auth = FirebaseAuth.Auth.auth()
6363
let info = try await auth.checkActionCode("code")
6464
let _: ActionCodeOperation = info.operation
65-
if let _: String = info.email,
66-
let _: String = info.previousEmail {}
65+
let _: String = info.email
66+
if let _: String = info.previousEmail {}
6767
}
6868

6969
func ActionCodeURL() {

0 commit comments

Comments
 (0)