#Discord oAuth2 Code 400

3 messages · Page 1 of 1 (latest)

median wyvernBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by staff
toxic maple

This endpoint does not accept json. You have to send them in www form urlencoded. (Look into the querystring module from node)

(Also note that this will make your client secret to visitors of your page.)

You either use the access token grant that does not require a secret (if your page has no backend) or post the code to your backend, which will then handle the requests to Discord.