title: Firebase 3.0 Tokens : [Error: Invalid claim 'kid' in auth header.]
body: <p>I'm trying to create JWT tokens in node.js for use with the REST api in firebase, but when I try to use them, I get the error "Error: Invalid claim 'kid' in auth header."</p>
  
  <p>This is my code</p>
  
  <pre><code>http.createServer(function (req, res) {
      var payload = {
          uid: "bruh"
      };
  
      var token = jwt.sign(payload, sact["private_key"], {
          algorithm: 'RS256',
          issuer: sact["client_email"],
          subject: sact["client_email"],
          audience: 'https://identitytoolkit.googleapis.com/google.identity.identitytoolkit.v1.IdentityToolkit',
          expiresIn: '3600s',
          jwtid: sact["private_key_id"],
          header: {
              "kid": sact["private_key_id"]
          }
      });
  
      res.writeHead(200);
      res.end("It worked. (" + token + ")");
  }).listen(port);
  </code></pre>
  
  <p>These are my requires</p>
  
  <pre><code>var http = require('http');
  var jwt = require('jsonwebtoken');
  </code></pre>