Skip to content

Commit

Permalink
[Auth] Add objc attribute to UserInfoImpl so legacy decoding works (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 authored Nov 25, 2024
1 parent 700fd68 commit 19f36aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions FirebaseAuth/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
- [fixed] Restore Firebase 10 behavior by synchronizing access to the
`Auth.currentUser` API. This resolves some Firebase 11 issues where the
current user is unexpectedly `nil` at startup.
- [fixed] Restore Firebase 10 decoding behavior to prevent user provider data
from being decoded as `nil`. (#14011)

# 11.5.0
- [fixed] Restore pre-Firebase 11 decoding behavior to prevent users getting
Expand Down
1 change: 1 addition & 0 deletions FirebaseAuth/Sources/Swift/User/UserInfoImpl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import Foundation
extension UserInfoImpl: NSSecureCoding {}

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

0 comments on commit 19f36aa

Please sign in to comment.