title: Firebase onCall Function with Multiple Parameters
body: <p>How can I send <strong>two string values</strong> to a specific cloud function.</p>
  <p>Here is an example of how I send one string to the <strong>onCall</strong> function.</p>
  <p><strong>index.js</strong> onCall() cloud function</p>
  <pre><code>exports.updateUserPassword = functions.https.onCall((data, context) =&gt; {
  
      const uid = data.text;
  
  });
  </code></pre>
  <p><strong>authentication.js</strong> in project root directory (calling the onCall cloud function)</p>
  <pre><code>var updateUserPassword  = firebase.functions().httpsCallable('updateUserPassword ');
  
  updateUserPassword({text: uid}).then(function(result) {
  
      var userProperties = result.data.userData;
      var successfulPasswordChange = userProperties.uid;
  
  })
  </code></pre>
  <p>How can I implement a way to send and receive a second string value.</p>
  <p>Assuming modifications will need to be in the calling function.</p>
  <pre><code>({text: uid}) //ex psuedo {text: uid, text: password}
  </code></pre>
  <p>Also how to retrieve it in the onCall() function with</p>
  <pre><code>var uid = data.text;
  var password = data.text;
  </code></pre>