Skip to content

Commit

Permalink
Documentation updates from #11532
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 committed Oct 3, 2023
1 parent a38c075 commit 1449344
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,23 @@ import Foundation
This class is available on iOS only.
*/
@objc(FIRPhoneMultiFactorInfo) public class PhoneMultiFactorInfo: MultiFactorInfo {
/**
@brief The string identifier for using phone as a second factor.
This constant is available on iOS only.
*/
@objc(FIRPhoneMultiFactorID) public static let PhoneMultiFactorID = "phone"

/**
@brief The string identifier for using TOTP as a second factor.
This constant is available on iOS only.
*/
@objc(FIRTOTPMultiFactorID) public static let TOTPMultiFactorID = "totp"

/**
@brief This is the phone number associated with the current second factor.
*/
@objc public var phoneNumber: String

init(proto: AuthProtoMFAEnrollment) {
guard let phoneInfo = proto.phoneInfo else {
fatalError("Internal Auth Error: Missing phone number in Multi Factor Enrollment")
Expand Down

0 comments on commit 1449344

Please sign in to comment.