Tokens

Tokens are how we authenticate with Discord.

Regular (and bot) tokens have this format:

Discord Token

MjQ1NTU5MDg3NTI0MjE2ODMy

DulyxA

brcD2xRAqjACTuMcGPwy4TWVQdg

Decode

base64.b64decode()

base64.b64decode() + 1293840000

N/A

Output

User ID

Unix TS

HMAC

MFA tokens, however, are just the HMAC prefixed with mfa..

How do I obtain mine?

To obtain your token from the Discord client, the easiest way is pasting this into the developer console (CTRL+SHIFT+I):

(webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m => m?.exports?.default?.getToken).exports.default.getToken()

Or, you can do it manually:

  1. Open developer tools (CTRL+SHIFT+I).

  2. Click the Network tab.

  3. Click the XHR tab.

  4. Select a request and click the Headers tab.

  5. Copy-paste the value in the Authorization header.