chore: improve nostr connect (#21)

* ref

* update

* temporary switch to rust-nostr fork

* use nip46 branch
This commit is contained in:
reya
2025-05-06 07:38:15 +07:00
committed by GitHub
parent 3fea18f038
commit 97e66fbeb7
7 changed files with 198 additions and 171 deletions

View File

@@ -38,13 +38,10 @@ impl Account {
{
let task: Task<Result<Profile, Error>> = cx.background_spawn(async move {
let client = get_client();
// Use user's signer for main signer
_ = client.set_signer(signer).await;
// Verify nostr signer and get public key
let signer = client.signer().await?;
let public_key = signer.get_public_key().await?;
log::info!("Logged in with public key: {:?}", public_key);
// Update signer
client.set_signer(signer).await;
// Fetch user's metadata
let metadata = client