尝试使用 Twitter 实施 OAuth 1.0a 时出现 403 错误 API

I am getting a 403 error when trying to implement OAuth 1.0a with twitter API

我正在尝试使用 twitter-api-v2

在 JS 中使用 twitter api 生成 OAuth 1.0a link
const client = new TwitterApi({ appKey: process.env.API_KEY, appSecret: process.env.API_KEY_SECRET });

app.listen(3000, () => console.log("You used express to set up a server!"));

app.get("/callback", (req, res) => {
  console.log(req);
});

const authLink = await client.generateAuthLink("localhost:3000/callback");

我检查了我的凭据,并在 Twitter 开发者门户上设置了 OAuth 1.0a。

事实证明,我犯了一个错误,只需要在我的 Twitter 开发者门户中编辑 URL。