diff --git a/doc/users.md b/doc/users.md index 698e56af2..2886a3677 100644 --- a/doc/users.md +++ b/doc/users.md @@ -459,17 +459,3 @@ The credentials are stored in `librespot/credentials.json` in the user's cache d The `logout` command can be used to remove cached credentials. See [Vim-Like Commands](#vim-like-commands). - -### Using a Password Manager -If you would like ncspot to retrieve your login data from command results, -i.e. because you use a password manager like `pass`, you can add the following -configuration: - -```toml -[credentials] -username_cmd = "echo username" -password_cmd = "pass spotify.com/username" -``` - -Do note that this is only required for the initial login or when your credential -token has expired. diff --git a/src/config.rs b/src/config.rs index 1a89fb7e8..4c3e0c839 100644 --- a/src/config.rs +++ b/src/config.rs @@ -100,17 +100,9 @@ pub struct ConfigValues { pub statusbar_format: Option, pub library_tabs: Option>, pub hide_display_names: Option, - pub credentials: Option, pub ap_port: Option, } -/// Commands used to obtain user credentials automatically. -#[derive(Serialize, Deserialize, Debug, Default, Clone)] -pub struct Credentials { - pub username_cmd: Option, - pub password_cmd: Option, -} - /// The ncspot theme. #[derive(Serialize, Deserialize, Debug, Default, Clone)] pub struct ConfigTheme {