ActionCodeOperation.swift 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright 2023 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. import Foundation
  15. /**
  16. @brief Operations which can be performed with action codes.
  17. */
  18. @objc(FIRActionCodeOperation) public enum ActionCodeOperation: Int, @unchecked Sendable {
  19. /** Action code for unknown operation. */
  20. case unknown = 0
  21. /** Action code for password reset operation. */
  22. case passwordReset = 1
  23. /** Action code for verify email operation. */
  24. case verifyEmail = 2
  25. /** Action code for recover email operation. */
  26. case recoverEmail = 3
  27. /** Action code for email link operation. */
  28. case emailLink = 4
  29. /** Action code for verifying and changing email */
  30. case verifyAndChangeEmail = 5
  31. /** Action code for reverting second factor addition */
  32. case revertSecondFactorAddition = 6
  33. }