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

370
Views
Discord api grant type None is not supported

this code returns me this: {"error": "unsupported_grant_type", "error_description": "Grant type None is not supported"}. What am i doing wrong?

app.get('*', (req,res) => {
res.sendFile(__dirname + "/test.html")
console.log(req.query.code)
const Body = {
    client_id: "870076989682360330",
    client_secret: "my secret",
    code: req.query.code,
    redirect_uri: "http://localhost:3000",
    grant_type: "authorization_code",
    scope :"scope"
}
if(req.query.code) {

    reqst.post({
        uri: "https://discord.com/api/oauth2/token",
        headers: {'Content-Type': 'application/x-www-form-urlencoded'},
        body: JSON.stringify(Body)
    }, (x,y,z) => {
        console.log(z)
    })

}

})

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Do you have scopes? if not try adding scopes and if yes you can check this Discord Ouath2 Access Token 'Grant type None is not supported' and discord docs https://discord.com/developers/docs/topics/oauth2#authorization-code-grant

about 4 years ago · Juan Pablo Isaza Report
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!