Skip to content

Get help logging in

isabella lulamoon edited this page Jun 7, 2025 · 1 revision

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

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.

Frequently-asked questions regarding password logon

Q: I get an error looking like this in the dialog:

RgQKbJpNmpVcxK3zk-lIHw

A: Use token logon. This is a Discord client bug that we cannot work around.

Q: I can log into Discord, but I just get a dialog with regular Discord, and not Aerochat!

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

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.

The quickest way to retrieve your token

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.

The most reliable way to retrieve your token

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:

  1. Open the network debugger first (so that requests start being logged)
  2. 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.
  3. 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.
  4. 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:

image