MCPcopy Index your code
hub / github.com/NativeScript/firebase / toActionCodeOperation

Function toActionCodeOperation

packages/firebase-auth/index.android.ts:572–589  ·  view source on GitHub ↗
(operation: com.google.firebase.auth.ActionCodeResult.Operation)

Source from the content-addressed store, hash-verified

570}
571
572function 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
591function toUserCredential(authData: com.google.firebase.auth.AuthResult): IUserCredential {
592 const additionalUserInfo = authData.getAdditionalUserInfo();

Callers 1

onSuccessMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…