From 1449344c4aa7aeecb90615be782242908ad076d9 Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Tue, 3 Oct 2023 09:07:08 -0700 Subject: [PATCH] Documentation updates from #11532 --- .../MultiFactor/Phone/PhoneMultiFactorInfo.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/FirebaseAuth/Sources/Swift/MultiFactor/Phone/PhoneMultiFactorInfo.swift b/FirebaseAuth/Sources/Swift/MultiFactor/Phone/PhoneMultiFactorInfo.swift index d7683cf56bb..cfa78bdc618 100644 --- a/FirebaseAuth/Sources/Swift/MultiFactor/Phone/PhoneMultiFactorInfo.swift +++ b/FirebaseAuth/Sources/Swift/MultiFactor/Phone/PhoneMultiFactorInfo.swift @@ -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")