FIRAuthProtoFinalizeMFATOTPSignInRequestInfo.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright 2023 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import "FirebaseAuth/Sources/Backend/RPC/Proto/FIRAuthProto.h"
  17. NS_ASSUME_NONNULL_BEGIN
  18. /**
  19. @brief FIRAuthProtoFinalizeMFATOTPSignInRequestInfo class. This class is used to compose
  20. finalizeMFASignInRequest for TOTP case.
  21. */
  22. @interface FIRAuthProtoFinalizeMFATOTPSignInRequestInfo : NSObject <FIRAuthProto>
  23. /**
  24. @brief Multifactor enrollment ID.
  25. */
  26. @property(nonatomic, strong, readonly, nullable) NSString *mfaEnrollmentID;
  27. /**
  28. @brief Verification code.
  29. */
  30. @property(nonatomic, strong, readonly, nullable) NSString *verificationCode;
  31. /**
  32. @fn initWithMfaEnrollmentID:verificationCode
  33. @brief initialize function for FIRAuthProtoFinalizeMFATOTPSignInRequestInfo.
  34. @param mfaEnrollmentID Multifactor enrollment ID.
  35. @param verificationCode One time verification code.
  36. */
  37. - (instancetype)initWithMfaEnrollmentID:(NSString *)mfaEnrollmentID
  38. verificationCode:(NSString *)verificationCode;
  39. @end
  40. NS_ASSUME_NONNULL_END