summary refs log tree commit diff
path: root/src/exampleFetch.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-01 21:49:01 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-01 21:49:01 +0100
commit2026ea59112b89dd8829e23236fa482ef84a2e31 (patch)
treec236474edb8e5a9f39193d518da2219759835bfd /src/exampleFetch.ts
parent:globe_with_meridians: localization (diff)
downloadserver-2026ea59112b89dd8829e23236fa482ef84a2e31.tar.xz
:sparkles: added defaults to config
Diffstat (limited to 'src/exampleFetch.ts')
-rw-r--r--src/exampleFetch.ts22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/exampleFetch.ts b/src/exampleFetch.ts

index 9c433e4b..fdcbe933 100644 --- a/src/exampleFetch.ts +++ b/src/exampleFetch.ts
@@ -1,27 +1,5 @@ import fetch from "node-fetch"; -fetch("https://discord.com/api/v8/auth/login", { - headers: { - authorization: "undefined", - "content-type": "application/json", - "x-fingerprint": "782364413927751692.ex9RorNkBsGynrJCe5Brxtc3Ytc", - "x-super-properties": - "eyJvcyI6Ik1hYyBPUyBYIiwiYnJvd3NlciI6IkNocm9tZSIsImRldmljZSI6IiIsImJyb3dzZXJfdXNlcl9hZ2VudCI6Ik1vemlsbGEvNS4wIChNYWNpbnRvc2g7IEludGVsIE1hYyBPUyBYIDEwXzE1XzcpIEFwcGxlV2ViS2l0LzUzNy4zNiAoS0hUTUwsIGxpa2UgR2Vja28pIENocm9tZS84Ny4wLjQyODAuNjcgU2FmYXJpLzUzNy4zNiIsImJyb3dzZXJfdmVyc2lvbiI6Ijg3LjAuNDI4MC42NyIsIm9zX3ZlcnNpb24iOiIxMC4xNS43IiwicmVmZXJyZXIiOiIiLCJyZWZlcnJpbmdfZG9tYWluIjoiIiwicmVmZXJyZXJfY3VycmVudCI6IiIsInJlZmVycmluZ19kb21haW5fY3VycmVudCI6IiIsInJlbGVhc2VfY2hhbm5lbCI6InN0YWJsZSIsImNsaWVudF9idWlsZF9udW1iZXIiOjcyMzc2LCJjbGllbnRfZXZlbnRfc291cmNlIjpudWxsfQ==", - }, - body: JSON.stringify({ - login: "email@gmail.com", - password: "cleartextpassword", - undelete: false, - captcha_key: null, - login_source: null, - gift_code_sku_id: null, - }), - method: "POST", -}); -/** - * @returns {"token": null, "mfa": true, "sms": true, "ticket": "WzMxMTEyOTM1NzM2MjEzNTA0MSwibG9naW4iXQ.X8LHqg.vTwtZBaLu5W_XMMSvKad1OAaEoA"} - */ - fetch("https://discord.com/api/v8/auth/mfa/totp", { headers: { authorization: "undefined",