| 509 | } |
| 510 | |
| 511 | function toActionCodeOperation(operation: FIRActionCodeOperation) { |
| 512 | switch (operation) { |
| 513 | case FIRActionCodeOperation.Unknown: |
| 514 | return ActionCodeInfoOperation.Unknown; |
| 515 | case FIRActionCodeOperation.PasswordReset: |
| 516 | return ActionCodeInfoOperation.PasswordReset; |
| 517 | case FIRActionCodeOperation.VerifyEmail: |
| 518 | return ActionCodeInfoOperation.VerifyEmail; |
| 519 | case FIRActionCodeOperation.RecoverEmail: |
| 520 | return ActionCodeInfoOperation.RecoverEmail; |
| 521 | case FIRActionCodeOperation.EmailLink: |
| 522 | return ActionCodeInfoOperation.EmailLink; |
| 523 | case FIRActionCodeOperation.VerifyAndChangeEmail: |
| 524 | return ActionCodeInfoOperation.VerifyAndChangeEmail; |
| 525 | case FIRActionCodeOperation.RevertSecondFactorAddition: |
| 526 | return ActionCodeInfoOperation.RevertSecondFactorAddition; |
| 527 | } |
| 528 | } |
| 529 | |
| 530 | function toUserCredential(authData: FIRAuthDataResult): IUserCredential { |
| 531 | const result = { |