title: Error with admin firebase: "admin.auth(...).generatePasswordResetLink is not a function"
body: <p>I made a email servies via Node.js(nodemailer) and firebase.</p>
  <p>When I craete new new user in application, that new user should get welcome email with Link for reseting password.</p>
  <p>Now I need to implement firebase admin --generatePasswordResetLink into node.js</p>
  <blockquote>
  <p>In this line of code is problem, errors is that generatePasswordResetLink() is not a function:</p>
  <p>admin.auth().generatePasswordResetLink(user.email, actionCodeSettings)</p>
  </blockquote>
  <pre><code>// Create user
  async function createUser(user) {
    firebase
      .auth()
      .createUser({
        email: user.email,
        password: user.password,
        displayName: `${user.firstName} ${user.lastName}`
      })
  // After user is created make a email teamplate and send it
      .then(function(userRecord) {
        let resetLink = ''    
        // Welcome email template
        const output = `
          &lt;p&gt;You have access to the Church Mutual Assignment Tool.&lt;/p&gt;
          &lt;p&gt;Follow this link to create new password for your account ${userRecord.email}:&lt;/p&gt;
          &lt;p&gt;${this.resetLink}&lt;/p&gt;
          &lt;p&gt;Thanks,&lt;/p&gt;
          &lt;p&gt;Your Church Mutual Assignment Tool team&lt;/p&gt;
        `
        let message = {
          from: 'nyik6nntutmq3vz6@ethereal.email',
          to: `${user.email}`,
          subject: 'Welcome to the Church Mutual Assignment Tool',
          text: 'Plaintext version of the message',
          html: output
        }
  
  
        // Generate reset password and Send Email
   //===== HERE IS PROBLEM THIS generatePasswordResetLink() &quot;is not a fucntion&quot;====== \\
        admin.auth().generatePasswordResetLink(user.email, actionCodeSettings)
          .then(link =&gt; {
            // Send Email
            transport.sendMail(message, (err, info) =&gt; {
              if (err) throw new Error('Error with email', err)
            })
            return sendCustomPasswordResetEmail(user.email, user.displayName, link)
          })
          .catch(error =&gt; {
            console.log('error', error)
          })
      })
  }
  </code></pre>