Skip to content

Commit 0cb491e

Browse files
committed
feat: auto open browser if receive auth_url
1 parent ece6bcc commit 0cb491e

File tree

3 files changed

+40
-10
lines changed

3 files changed

+40
-10
lines changed

src-tauri/Cargo.lock

Lines changed: 36 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ keyring = { version = "3", features = ["apple-native", "windows-native"] }
5050
keyring-search = { git = "https://github.com/reyamir/keyring-search" }
5151
tracing-subscriber = { version = "0.3.18", features = ["fmt"] }
5252

53+
[patch.'https://github.com/rust-nostr/nostr']
54+
nostr-sdk = { git = "https://github.com/reyamir/nostr", branch = "feat/open-auth-url", features = ["lmdb", "webln", "all-nips"] }
55+
nostr-connect = { git = "https://github.com/reyamir/nostr", branch = "feat/open-auth-url" }
56+
5357
[target.'cfg(target_os = "macos")'.dependencies]
5458
border = { git = "https://github.com/ahkohd/tauri-toolkit", branch = "v2" }
5559
share-picker = { git = "https://github.com/ahkohd/tauri-toolkit", branch = "v2" }

src-tauri/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,6 @@ fn main() {
549549
) {
550550
println!("Emit error: {}", e)
551551
}
552-
} else if event.kind == Kind::JobResult(6300) {
553-
println!("Job result: {}", event.as_json())
554552
}
555553
}
556554
}

0 commit comments

Comments
 (0)