Replies: 3 comments
-
const requestOptions = {
"method": "POST",
"body": {
"username": "ouou",
"email": `160211bcdb4be@gmail.com`,
"password": "Santaco2468",
"consent": true,
"date_of_birth": "1994-04-05",
"captcha_key": "123",
},
"headers": {
"Content-Type": "application/json",
},
"redirect": "follow",
};
const data = fetch
.default(
"https://discord.com/api/v9/auth/register",
JSON.stringify(requestOptions)
)
.then((response) => response.text())
.then(console.log, console.error); |
Beta Was this translation helpful? Give feedback.
0 replies
-
try this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/in_operator_no_object |
Beta Was this translation helpful? Give feedback.
0 replies
-
Problem solved, just changed from node-fetch to native https :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Beta Was this translation helpful? Give feedback.
All reactions