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);
@UltraBlackLinux
Copy link
Copy Markdown

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
Copy Markdown

xav#0666 for help

@stretch07
Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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

@UltraBlackLinux
Copy link
Copy Markdown

y'all are using invalid tokens lmao

@RealHeha
Copy link
Copy Markdown

RealHeha commented Jan 2, 2023

it doesnt work lol

@pxldevv
Copy link
Copy Markdown

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
Copy Markdown

RakonR commented Jan 8, 2023

Doesn't work

@MisterBullet
Copy link
Copy Markdown

nah none of this shit is working for me

@DumbGameMaker
Copy link
Copy Markdown

DumbGameMaker commented Jan 13, 2023 via email

@SuperHarmony910
Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

NOFY96 commented Mar 10, 2023 via email

@RealHeha
Copy link
Copy Markdown

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
Copy Markdown

TruongDinhDTri commented Mar 11, 2023 via email

@TruongDinhDTri
Copy link
Copy Markdown

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
Copy Markdown

It work

@DracoGamer2
Copy link
Copy Markdown

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

@DracoGamer2
Copy link
Copy Markdown

DracoGamer2 commented Mar 23, 2023 via email

@DracoGamer2
Copy link
Copy Markdown

DracoGamer2 commented Mar 23, 2023 via email

@DracoGamer2
Copy link
Copy Markdown

DracoGamer2 commented Mar 23, 2023 via email

@Sheepasus
Copy link
Copy Markdown

Can anyone explain me how to get it work as well?

@DracoGamer2
Copy link
Copy Markdown

DracoGamer2 commented Mar 29, 2023 via email

@Sheepasus
Copy link
Copy Markdown

yeah I already got it to work, I even made it work for tokens that are 2fa verified aswell, As they require a different approach

@PrmWiny
Copy link
Copy Markdown

PrmWiny commented Mar 30, 2023

I things it work sometime

before the QR CODE LOGIN IS REFRESHING add some console command in it and wait around 120 sec for the QR CODE refreshing

boom! it's works!!!!

but not 100% work all the times i think u can do a trick in command for get it for 100% work.

image

I use this command : 👍

let token = "ur token";

function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement iframe).contentWindow.localStorage.token = "${token}"
}, 50);
}

login(token);

@Sheepasus
Copy link
Copy Markdown

the problem is the waiting period, you need to set it to 100 instead of 50, and then for me it works 99% of the time

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