Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Token Structure #43

Open
alluding opened this issue Jan 24, 2024 · 0 comments
Open

Invalid Token Structure #43

alluding opened this issue Jan 24, 2024 · 0 comments

Comments

@alluding
Copy link

The token structure you provided is somewhat invalid. Yes, the first part of the token is the user ID base64 encoded, but after the second dot, it's a timestamp. So, a Discord token has three parts. If you decode the first part of the token, which is base64, to a string, it returns the user ID. You already know this since that is what the script is doing in just reverse order. Anyway, onto the next part. The second part of the token, if you decode it base64 as well, you get a timestamp. Then you use the epoch for tokens, which is 1293840000, and with that result, you decode the Unix timestamp, and then you can get the timestamp at which it was created.


structure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant