# How to Log into a Discord Account Using Only a Token

{% hint style="danger" %}
After you log in, do not click the `Logout` button. When you do that, you're essentially instructing Discord to delete your token. Instead, try clearing your website cookies or local storage, or use Incognito mode.
{% endhint %}

1. Open your browser
2. Go to [discord.com/login](https://discord.com/login)
3. Press `F12`
4. Select the console tab
5. Paste the script and replace `TOKEN HERE` with your actual token and press ENTER
6. You are now logged in

```javascript
(function() {
window.t = "TOKEN HERE";
window.localStorage = document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage;
window.setInterval(() => window.localStorage.token = `"${window.t}"`);
window.location.reload();
})();
```

{% hint style="warning" %}
If you encounter the message "Warning: Don’t paste code into the DevTools Console that you don’t understand or haven’t reviewed yourself..."\
Simply type `allow pasting` into the console and hit Enter to allow pasting.
{% endhint %}
