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

[vscode] [discord] Discord Token #314

Closed
1ycx opened this issue Feb 7, 2019 · 9 comments
Closed

[vscode] [discord] Discord Token #314

1ycx opened this issue Feb 7, 2019 · 9 comments

Comments

@1ycx
Copy link

1ycx commented Feb 7, 2019

I don't understand how to get the token. Can you check this issue I created on the same topic on discord-api-docs repo and tell me where I went wrong ?

discord/discord-api-docs#847

@SinisterRectus
Copy link

SinisterRectus commented Feb 7, 2019

Discord does not support user account automation outside of their OAuth2 API. Additionally, submitting user tokens outside of their client is a security risk. For these reasons, they removed the ability to access user tokens via localStorage.

@1ycx
Copy link
Author

1ycx commented Feb 7, 2019

@SinisterRectus Then . . . Is this extension useless for discord ?

@arjunattam
Copy link
Owner

Thanks @kogam22 and @SinisterRectus. Looks like the token access is disabled, and we will need to find an alternative here. We have been investigating using RPC API (#266), but since it is in private beta for most features (except Rich Presence), we are hitting a roadblock. Let me think of alternatives for this and get back to you.

@crock
Copy link

crock commented Feb 9, 2019

Perhaps the only solution at this time is to use bot tokens instead of user tokens. I know that would make the extension way less useful for Discord users as the bot would have to be installed on each server they are in, but it's an option.

@Muirrum
Copy link

Muirrum commented Feb 17, 2019

Couldn't you also try and make an OAuth application (at least to read the messages for now)

@efskap
Copy link

efskap commented Feb 21, 2019

This method still works!!
Tyrrrz/DiscordChatExporter#76 (comment)
(tl;dr: inspect network requests in dev tools and grab the token from the authorization header)

With this, the extension works great, thank you :)

@lukaskleinhaneveld
Copy link

This method still works!!
Tyrrrz/DiscordChatExporter#76 (comment)
(tl;dr: inspect network requests in dev tools and grab the token from the authorization header)

With this, the extension works great, thank you :)

I thought this WAS the way to get the auth token? hahaha

@efskap
Copy link

efskap commented Mar 3, 2019

Well no, the docs still instruct the user to get the token from localStorage.token at the dev console.
No mention of network request inspection.

@arjunattam
Copy link
Owner

Closing for now. The docs call out that discord integration is unofficial and not recommended

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

7 participants