Skip to content

Commit 19f36aa

Browse files
authored
[Auth] Add objc attribute to UserInfoImpl so legacy decoding works (#14169)
1 parent 700fd68 commit 19f36aa

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

FirebaseAuth/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
- [fixed] Restore Firebase 10 behavior by synchronizing access to the
33
`Auth.currentUser` API. This resolves some Firebase 11 issues where the
44
current user is unexpectedly `nil` at startup.
5+
- [fixed] Restore Firebase 10 decoding behavior to prevent user provider data
6+
from being decoded as `nil`. (#14011)
57

68
# 11.5.0
79
- [fixed] Restore pre-Firebase 11 decoding behavior to prevent users getting

FirebaseAuth/Sources/Swift/User/UserInfoImpl.swift

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import Foundation
1818
extension UserInfoImpl: NSSecureCoding {}
1919

2020
@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
21+
@objc(FIRUserInfoImpl) // objc Needed for decoding old versions
2122
class UserInfoImpl: NSObject, UserInfo {
2223
/// A convenience factory method for constructing a `UserInfo` instance from data
2324
/// returned by the getAccountInfo endpoint.

0 commit comments

Comments
 (0)