MCPcopy Create free account
hub / github.com/NativeScript/firebase / toActionCodeOperation

Function toActionCodeOperation

packages/firebase-auth/index.ios.ts:511–528  ·  view source on GitHub ↗
(operation: FIRActionCodeOperation)

Source from the content-addressed store, hash-verified

509}
510
511function 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
530function toUserCredential(authData: FIRAuthDataResult): IUserCredential {
531 const result = {

Callers 1

checkActionCodeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected