Tokens¶
Tokens are how we authenticate with Discord.
Regular (and bot) tokens have this format:
MjQ1NTU5MDg3NTI0MjE2ODMy |
DulyxA |
brcD2xRAqjACTuMcGPwy4TWVQdg |
|
|---|---|---|---|
Decode |
|
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:
Open developer tools (CTRL+SHIFT+I).
Click the Network tab.
Click the XHR tab.
Select a request and click the Headers tab.
Copy-paste the value in the Authorization header.