Getting access token from Github
问题 I'm trying to get an access token from Github using a NodeJS client. const axios = require("axios"); var jwt = require("jsonwebtoken"); exports.openedPOST = function openedPOST(req, res) { // generate jwt const now = Math.round(Date.now() / 1000); const payload = { // issued at time iat: now, // expires in 10min exp: now + 600, // Github app id iss: 6700 }; const token = jwt.sign(payload, cert, { algorithm: "RS256" }); console.log(token) // auth to github axios({ method: "get", url: "https:/