-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Auth] Forward secure coding calls for TOTPMultiFactorInfo #13592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
11f3c69
a5857a1
707d2c9
535a0fe
494a3a2
4bc61c1
01f68db
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Despite being marked unavailable, this class's
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,19 +22,18 @@ import Foundation | |
/// | ||
/// This class is available on iOS only. | ||
class TOTPMultiFactorInfo: MultiFactorInfo { | ||
/// This is the totp info for the second factor. | ||
let totpInfo: NSObject? | ||
Comment on lines
-25
to
-26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typing this with a more specific type (dictionary) added a more code to cast it during encoding and decoding. I stepped back and see that this property is never read from (it's only read from from the |
||
|
||
/// Initialize the AuthProtoMFAEnrollment instance with proto. | ||
/// - Parameter proto: AuthProtoMFAEnrollment proto object. | ||
init(proto: AuthProtoMFAEnrollment) { | ||
totpInfo = proto.totpInfo | ||
super.init(proto: proto, factorID: PhoneMultiFactorInfo.TOTPMultiFactorID) | ||
} | ||
|
||
@available(*, unavailable) | ||
required init?(coder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
super.init(coder: coder) | ||
} | ||
|
||
override class var supportsSecureCoding: Bool { | ||
super.supportsSecureCoding | ||
} | ||
} | ||
#endif |
Uh oh!
There was an error while loading. Please reload this page.