erictik / midjourney-api

MidJourney client. Unofficial Node.js client
Apache License 2.0
1.64k stars 269 forks source link

Not able to get discord token #259

Open 6leonardo opened 4 months ago

6leonardo commented 4 months ago

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

E-toolmaster commented 3 months ago

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()