chore: Improve Login Process (#70)
* wip * simplify nostr connect uri logic * improve wait for connection * improve handle password * . * add countdown
This commit is contained in:
@@ -18,6 +18,7 @@ smallvec.workspace = true
|
||||
smol.workspace = true
|
||||
futures.workspace = true
|
||||
reqwest.workspace = true
|
||||
log.workspace = true
|
||||
|
||||
webbrowser = "1.0.4"
|
||||
qrcode-generator = "5.0.0"
|
||||
|
||||
@@ -6,6 +6,7 @@ pub struct CoopAuthUrlHandler;
|
||||
impl AuthUrlHandler for CoopAuthUrlHandler {
|
||||
fn on_auth_url(&self, auth_url: Url) -> BoxedFuture<Result<()>> {
|
||||
Box::pin(async move {
|
||||
log::info!("Received Auth URL: {auth_url}");
|
||||
webbrowser::open(auth_url.as_str())?;
|
||||
Ok(())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user