#Discord oAuth2 Code 400
3 messages · Page 1 of 1 (latest)
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.