mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-03 01:39:28 +02:00
adding callback for reusable credentials (#983)
This allows more control over how the credentials are saved to the cache
This commit is contained in:
parent
1efda79787
commit
6c2491b9a3
7 changed files with 17 additions and 8 deletions
|
@ -20,7 +20,7 @@ async fn main() {
|
|||
|
||||
println!("Connecting..");
|
||||
let credentials = Credentials::with_password(&args[1], &args[2]);
|
||||
let session = Session::connect(session_config, credentials, None)
|
||||
let (session, _) = Session::connect(session_config, credentials, None, false)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ async fn main() {
|
|||
let backend = audio_backend::find(None).unwrap();
|
||||
|
||||
println!("Connecting ..");
|
||||
let session = Session::connect(session_config, credentials, None)
|
||||
let (session, _) = Session::connect(session_config, credentials, None, false)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ async fn main() {
|
|||
process::exit(1);
|
||||
});
|
||||
|
||||
let session = Session::connect(session_config, credentials, None)
|
||||
let (session, _) = Session::connect(session_config, credentials, None, false)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue