Skip to content

FIRMultiFactor does not support NSSecureCoding correctly  #10632

Closed
@igor-makarov

Description

Description

The FIRMultiFactor conforms to NSSecureCoding but does not support it correctly.

According to Apple:

An object that does override init(coder:) must decode any enclosed objects using the decodeObjectOfClass:forKey: method.

(NSSecureCoding documentation)

In addition, the user property is a weak reference to parent object and should be set outside encode/decode.

Reproducing the issue

No response

Firebase SDK Version

10.3.0

Xcode Version

14.1

Installation Method

CocoaPods

Firebase Product(s)

Authentication

Targeted Platforms

iOS

Relevant Log Output

No response

If using Swift Package Manager, the project's Package.resolved

No response

If using CocoaPods, the project's Podfile.lock

No response

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions