title: google sheets api connection - error JWT cannot be invoked without 'new'
body: <p>i try to set connection to google sheets api with this code:</p>
  <pre><code>const { google } = require(&quot;googleapis&quot;);
  const keys = require(&quot;./keys.json&quot;);
  
  const client = google.auth.JWT(keys.client_email, null, keys.private_key, [
    &quot;https://www.googleapis.com/auth/spreadsheets&quot;,
  ]);
  
  client.authorized(function (err, tokens) {
    if (err) {
      console.log(err);
      return;
    } else {
      console.log(&quot;connected&quot;);
    }
  });
  </code></pre>
  <p>i get this error when run on vscode:</p>
  <pre><code>TypeError: Class constructor JWT cannot be invoked without 'new'
  </code></pre>
  <p>thank you</p>