Skip to content

Instantly share code, notes, and snippets.

@logicguy1
Last active January 29, 2023 14:13
Show Gist options
  • Save logicguy1/a9b1970e98bc10949f9b145bbad7155b to your computer and use it in GitHub Desktop.
Save logicguy1/a9b1970e98bc10949f9b145bbad7155b to your computer and use it in GitHub Desktop.
Discord token login script

A script used to login using only a discord token

Go to the discords login page
https://discord.com/login

Press ctrl + shift + i and navigate to the console tab
Paste the script below and paste your token in the popup

function login() {
  console.log("Fetching token");
  var token = prompt("Please enter your token: ", "");
  
  if (token.length == 0) {
    console.log("Empty feild");
    return;
  }
  
  console.log("Logging in");
  
  setInterval(() => {
    document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
  }, 50);
  setTimeout(() => {
    location.reload();
  }, 2500);
}
login();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment