feat: add verify signer

This commit is contained in:
2024-02-04 10:46:50 +07:00
parent bd2b6a3759
commit 3ba870be4b
2 changed files with 11 additions and 3 deletions

View File

@@ -42,3 +42,11 @@ pub async fn update_signer(key: String, app_state: State<'_, AppState>) -> Resul
Ok(())
}
#[tauri::command]
pub async fn verify_signer(app_state: State<'_, AppState>) -> Result<bool, ()> {
let client = &app_state.nostr;
let status = client.signer().await.is_ok();
Ok(status)
}