Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

441
Views
Error de Discord OAuth2: 'invalid_client' al intentar obtener el token de acceso

Quería hacer que el sitio web discordara oauth2, pero cuando probé recibí un error {error: 'invalid_client'} . Estuve buscando por todas partes y nada ayudó. ¿Puede decirme cómo usar Discord OAuth2?

Estoy usando Node.JS , Express , Request

 if(!req.query.code) return res.redirect("/") const discordTokenData = await request.post({ url: "https://discord.com/api/v9/oauth2/token", qs: { "client_id": client_id, "client_secret": client_secret, "grant_type": "authorization_code", "code": req.query.code, "redirect_uri": "http://localhost:3000/login", "scope": "identify email guilds guilds.join" }, headers: { "Content-Type": "application/x-www-form-urlencoded" }, }).catch((err) => console.log(err)) if(!discordTokenData)return console.log("err") return res.send(discordTokenData.body)
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!