ayn2op / discordo

A lightweight, secure, and feature-rich Discord terminal client.
MIT License
2.02k stars 63 forks source link

possibility to **not** use a keyring? #351

Closed formula-spectre closed 5 months ago

formula-spectre commented 5 months ago

i'm using discordo, and i've noticed that it stores the auth in a keyring. problem: I don't have and want one.
is there a way to store it somewhere in ~/.local/ in an encrypted way without using a keyring? if not, what's the dumbest smallest keyring I can use only for discordo?

apprehensions commented 5 months ago

286

ayn2op commented 5 months ago

i'm using discordo, and i've noticed that it stores the auth in a keyring. problem: I don't have and want one. is there a way to store it somewhere in ~/.local/ in an encrypted way without using a keyring? if not, what's the dumbest smallest keyring I can use only for discordo?

If you don't care about your authentication token, just alias discordo as discordo --token "YOUR_TOKEN_HERE" in your shell profile.

formula-spectre commented 5 months ago

but the token is stored in the keyring no? or you mean the one that I have to get in the web app with dev tools?

ayn2op commented 5 months ago

but the token is stored in the keyring no? or you mean the one that I have to get in the web app with dev tools?

Yes. You have to manually get the token and alias discordo as discordo --token "TOKEN_FROM_DEVTOOLS":

alias discordo=discordo --token "..."
formula-spectre commented 5 months ago

i see, thanks