title: How to send email verification after user creation with Firebase Cloud functions?
body: <p>I'm trying to send the verification email after the user is created. Since there's no way on Firebase itself, I'm trying it with cloud functions.</p>
  
  <p>I cannot really find a lot of documentation about it. What I tried to do so far is:</p>
  
  <pre><code>exports.sendEmailVerification = functions.auth.user().onCreate(event =&gt; {
      return user.sendEmailVerification()
  });
  </code></pre>
  
  <p>But I get the error that user is not defined.</p>
  
  <p>How can I create this function?</p>
  
  <p>Thanks!</p>