use nostr_connect::prelude::*; #[derive(Debug, Clone)] pub struct CoopAuthUrlHandler; impl AuthUrlHandler for CoopAuthUrlHandler { fn on_auth_url(&self, auth_url: Url) -> BoxedFuture> { Box::pin(async move { log::info!("Received Auth URL: {auth_url}"); webbrowser::open(auth_url.as_str())?; Ok(()) }) } }