-
Notifications
You must be signed in to change notification settings - Fork 20
Get help logging in
Aerochat provides two methods to log in: password logon and token logon. Both methods have their own advantages and disadvantages, such as ease of use. However, if you are having trouble with one of the methods, you should try the other method.
Password logon is the easiest way to log into Aerochat, although it has additional dependencies. You must have the WebView2 runtime installed on your system in order to use it. Additionally, it suffers from instability as it is subject to security changes by Discord that makes it harder to retrieve your token. This is because, while we retrieve tokens through an automated script on behalf of the user with the user's consent, most of the time automated retrieval of Discord tokens is carried out by malicious actors in order to hijack accounts.
With the password logon method, a dialog will be opened containing the official Discord client. This dialog is a web view with our own code injected into it to detect when you successfully log into Discord, so we can grab your token and feed it into Aerochat to authenticate your Aerochat session.

A: Use token logon. This is a Discord client bug that we cannot work around.
A: A fatal error occurred in our interception script, and we not only failed to get your token, but we also failed to detect any error case. This is another case where you simply must use token logon instead. Close the ".NET Passport Log-on" window and proceed to token logon in the Aerochat logon screen.
Token logon is a slightly harder way to log into Aerochat. It requires you to manually retrieve your Discord token and input it into the Aerochat logon screen. It is slightly harder to use because you have to access developer tools in an official Discord client in order to obtain your token.
Your Discord token is a string which looks something like the following:
MzA4MjkzNjAzNTMxMjkyNjcy.DN9r_A.brcD2xRAqjAGTuMcGPwy4THWQdg
The above example token was sourced from this page explaining the structure of a Discord token. It is a not a real token you can sign in with.
Discord messes with local storage to hide your token during a regular session, but you can work around this with a iframe. Simply open Inspect Element (CTRL+SHIFT+I) and go to the "Console" tab and type the following script:
var iframe = document.createElement("iframe");
document.body.appendChild(iframe);
console.log(iframe.contentWindow.localStorage.token);
iframe.remove();
This is one of the same scripts that we use within Aerochat to retrieve your token, by the way. :3
The message that follows should your be your Discord token in plaintext. You can then paste this into Aerochat to log in.
Your token is always sent in plaintext in every HTTP request that Discord makes. Using the "Network" tab of your browser's development tools (CTRL+SHIFT+I), you can take your token from the Authorization
header sent. Simply:
- Open the network debugger first (so that requests start being logged)
- Switch your channel to a new one you never visited before or start typing a message or something. This ensures that a Discord API request is made, so you have a request that is supplied a Discord token.
- Click on any random request and look for an
Authorization
header in the data. Some requests, such as CDN requests, will lack this information, but most of them have it. - Copy the
Authorization
header and paste it into Aerochat to log in.
The following image shows an example of the network debugger GUI in Chromium-based browsers and the official Discord client: