Skip to content

Instantly share code, notes, and snippets.

@m-Phoenix852
Created August 26, 2020 07:45
Show Gist options
  • Select an option

  • Save m-Phoenix852/b47fffb0fd579bc210420cedbda30b61 to your computer and use it in GitHub Desktop.

Select an option

Save m-Phoenix852/b47fffb0fd579bc210420cedbda30b61 to your computer and use it in GitHub Desktop.
Simple script to log in to discord account using token.
let token = "your token";
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
login(token);
@SuperHarmony910
Copy link

yep it does, but I'm not quite used to webpackChunkdiscord_app

same heree...

@443pablo
Copy link

@SuperHarmony910 man I wish someone would document this. Also is the copy function defined in internal discord?

@TriNotNight
Copy link

Is this supposed to work when pasting in console ?

@UltraBlackLinux
Copy link

Is this supposed to work when pasting in console ?

yeah, but you can also add that into a bookmark on firefox

@RRTropical
Copy link

Yeah nah, doesn't work anymore

@UltraBlackLinux
Copy link

I use it daily. It works.

@UltraBlackLinux
Copy link

It literally does. No clue what you are doing.

Are you trying this in the web app or the desktop client? Web works for me, and I haven't tested the app

@xavierskids
Copy link

xav#0666 for help

@443pablo
Copy link

443pablo commented Dec 8, 2022

yall are just retarded
use your brain
xav#0666 for help

@xavierskids no one is going to ask you for help lmfao

@lafkpages
Copy link

Does not work for me, it just signed me out of all accounts. Seems like the token store does no longer exist because of Account Switcher, so this script no longer works.

@UltraBlackLinux
Copy link

Still works (on the web client at least). I don't get why you are all having issues, it works like a charm.

@pxldevv
Copy link

pxldevv commented Dec 15, 2022

I know that for me, I have to put the token into the webclient and then spam the command as in this README file

https://github.com/passedout/Discord-Token-Login-Script#discord-token-login-script

@vsamavila
Copy link

Have been trying everything on this thread and can't get a single login to work

@UltraBlackLinux
Copy link

y'all are using invalid tokens lmao

@RealHeha
Copy link

RealHeha commented Jan 2, 2023

it doesnt work lol

@pxldevv
Copy link

pxldevv commented Jan 3, 2023

Works for me

I know that for me, I have to put the token into the webclient and then spam the command as in this README file

github.com/passedout/Discord-Token-Login-Script#discord-token-login-script

@RakonR
Copy link

RakonR commented Jan 8, 2023

Doesn't work

@MisterBullet
Copy link

nah none of this shit is working for me

@DumbGameMaker
Copy link

DumbGameMaker commented Jan 13, 2023 via email

@SuperHarmony910
Copy link

Please stop emailing me github (it isnt letting me unsubscribe)I've been getting 12 year old kids trying to hack their friends emailing me since pandemic started...Sent from my iPhoneOn Jan 12, 2023, at 8:46 PM, MisterBullet @.> wrote:Re: @. commented on this gist.nah none of this shit is working for me—Reply to this email directly, view it on GitHub or unsubscribe.You are receiving this email because you commented on the thread.Triage notifications on the go with GitHub Mobile for iOS or Android.

...open the webpage on computer if you can since it's obv not working for you on phone, and press the button in the top right that says Unsubscribe- is it really that hard to figure it out for yourself bro

@TruongDinhDTri
Copy link

It doesn't work anymore guys. I check the dev tools an saw that each time you paste the token in and refresh instead of it log you in it redirect you back to the login page. Each time you refresh even if you paste the token in the "local storage" but if you refresh it will automatically run another thing it's
+-----------------+---------------------------------+
| tokens | {"user_id_cache": "your token"} |
+-----------------+---------------------------------+
| user_id_cache: | "your_user_id" |
-------------------+---------------------------------+
| token | "your_token" |
+-----------------+---------------------------------+
But even i paste these two value in, each time you reload it just empty the token --> refresher -->
token: {} --> back to the login page

@NOFY96
Copy link

NOFY96 commented Mar 10, 2023 via email

@RealHeha
Copy link

RealHeha commented Mar 11, 2023

just go to inspect > applications > local storage > discord.com, then click mobile icon on top right of inspect and search "token" in the filter then change the value to your token

@TruongDinhDTri
Copy link

TruongDinhDTri commented Mar 11, 2023 via email

@TruongDinhDTri
Copy link

please i need your help add me on discord Wiwi#0402 it’s super urgent please

It doesn't work anymore guys. I check the dev tools an saw that each time you paste the token in and refresh instead of it log you in it redirect you back to the login page. Each time you refresh even if you paste the token in the "local storage" but if you refresh it will automatically run another thing it's
+-----------------+---------------------------------+
| tokens | {"user_id_cache": "your token"} |
+-----------------+---------------------------------+
| user_id_cache: | "your_user_id" |
-------------------+---------------------------------+
| token | "your_token" |
+-----------------+---------------------------------+
But even i paste these two value in, each time you reload it just empty the token --> refresher -->
token: {} --> back to the login page

Added

@DracoGamer2
Copy link

It work

@DracoGamer2
Copy link

It works depance the pc you have, i have a cromebook and it works

@DracoGamer2
Copy link

DracoGamer2 commented Mar 23, 2023 via email

@DracoGamer2
Copy link

DracoGamer2 commented Mar 23, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment