Private
Public Access
1
0

snoozer: try another auth method

This commit is contained in:
2025-08-29 23:09:57 -06:00
parent 8fcc7609b9
commit 44fa638b1c

View File

@@ -50,10 +50,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let auth_store = InMemoryAuthenticationStore::new(Some(credentials.clone()));
let mut client = HTTPAPIClient::new(server_url, auth_store);
// Authenticate first (and set token manually in case the client doesn't)
let token = client.authenticate(credentials).await?;
client.auth_store.set_token(token.to_string()).await;
println!("Authenticated successfully: {:?}", token);
// Kick auth... this is bad. Update monitor should do this.
_ = client.get_conversations().await?;
// Open event socket
let event_socket = client.open_event_socket(None).await?;