(operation: com.google.firebase.auth.ActionCodeResult.Operation)
| 570 | } |
| 571 | |
| 572 | function toActionCodeOperation(operation: com.google.firebase.auth.ActionCodeResult.Operation) { |
| 573 | switch (operation) { |
| 574 | case ActionCodeResult.Error: |
| 575 | return ActionCodeInfoOperation.Unknown; |
| 576 | case ActionCodeResult.PasswordReset: |
| 577 | return ActionCodeInfoOperation.PasswordReset; |
| 578 | case ActionCodeResult.VerifyEmail: |
| 579 | return ActionCodeInfoOperation.VerifyEmail; |
| 580 | case ActionCodeResult.RecoverEmail: |
| 581 | return ActionCodeInfoOperation.RecoverEmail; |
| 582 | case ActionCodeResult.EmailLink: |
| 583 | return ActionCodeInfoOperation.EmailLink; |
| 584 | case ActionCodeResult.VerifyAndChangeEmail: |
| 585 | return ActionCodeInfoOperation.VerifyAndChangeEmail; |
| 586 | case ActionCodeResult.RevertSecondFactorAddition: |
| 587 | return ActionCodeInfoOperation.RevertSecondFactorAddition; |
| 588 | } |
| 589 | } |
| 590 | |
| 591 | function toUserCredential(authData: com.google.firebase.auth.AuthResult): IUserCredential { |
| 592 | const additionalUserInfo = authData.getAdditionalUserInfo(); |
no outgoing calls
no test coverage detected
searching dependent graphs…