code: function(phoneAuthResult) {
          // Display the dialog that the code was sent.
          var container = component.getContainer();
          component.showProgressDialog(
              firebaseui.auth.ui.element.progressDialog.State.DONE,
              firebaseui.auth.soy2.strings.dialogCodeSent().toString());
          // Keep the dialog long enough to be seen before redirecting to code
          // entry page.
          var codeVerificationTimer = setTimeout(function() {
            component.dismissDialog();
            // Handle sign in with phone number code verification.
            component.dispose();
            firebaseui.auth.widget.handler.handle(
                firebaseui.auth.widget.HandlerName.PHONE_SIGN_IN_FINISH,
                app,
                container,
                phoneNumberValue,
                firebaseui.auth.widget.handler.RESEND_DELAY_SECONDS,
                phoneAuthResult);
          }, firebaseui.auth.widget.handler.SENDING_SUCCESS_DIALOG_DELAY);
          // On reset, clear timeout.
          app.registerPending(function() {
            // Dismiss dialog if still visible.
            if (component) {
              component.dismissDialog();
            }
            clearTimeout(codeVerificationTimer);
          });
        }
docs: On success a phone Auth result is returned.