midjourney-api icon indicating copy to clipboard operation
midjourney-api copied to clipboard

Not able to get discord token

Open 6leonardo opened this issue 11 months ago • 2 comments

the code that reproduces this issue or a replay of the bug

the client could be use anymore or is changed che method to authenticate

Describe the bug

window.webpackChunkdiscord_app.push([ [Math.random()], {}, (req) => { for (const m of Object.keys(req.c) .map((x) => req.c[x].exports) .filter((x) => x)) { if (m.default && m.default.getToken !== undefined) { return copy(m.default.getToken()); } if (m.getToken !== undefined) { return copy(m.getToken()); } } }, ]); console.log("%cWorked!", "font-size: 50px"); console.log(%cYou now have your token in the clipboard!, "font-size: 16px");

give error e dont return the token.

searching in the local storage for token give no result.

i am not able to retrive my token

error log

VM298:5 Uncaught TypeError: Cannot convert undefined or null to object at Function.keys () at :5:28 at t (sentry.9a203313dddc8dd3f049.js:1:6757) at :1:32 (anonymous) @ VM298:5 t @ sentry.9a203313dddc8dd3f049.js:1 (anonymous) @ VM298:1

6leonardo avatar Mar 04 '24 09:03 6leonardo

use this: (webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m=>m?.exports?.default?.getToken!==void 0).exports.default.getToken()

E-toolmaster avatar Mar 13 '24 15:03 E-toolmaster

Thi

use this: (webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m=>m?.exports?.default?.getToken!==void 0).exports.default.getToken()

This doesn't work anymore either, just go to network tab and check for Authorization headers in the 'https://discord.com/api/v9/science' , API calls in general, there you have it

ideepankarsharma2003 avatar Jul 16 '24 10:07 ideepankarsharma2003