chore: improve nostr connect (#21)
* ref * update * temporary switch to rust-nostr fork * use nip46 branch
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user