upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/lib/login/existing.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/login/existing.rs')
-rw-r--r--src/lib/login/existing.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/login/existing.rs b/src/lib/login/existing.rs
index 4606c22..efe187e 100644
--- a/src/lib/login/existing.rs
+++ b/src/lib/login/existing.rs
@@ -1,15 +1,15 @@
1use std::{str::FromStr, sync::Arc, time::Duration}; 1use std::{str::FromStr, sync::Arc, time::Duration};
2 2
3use anyhow::{bail, Context, Result}; 3use anyhow::{Context, Result, bail};
4use nostr::nips::nip46::NostrConnectURI; 4use nostr::nips::nip46::NostrConnectURI;
5use nostr_connect::client::NostrConnect; 5use nostr_connect::client::NostrConnect;
6use nostr_sdk::{NostrSigner, PublicKey}; 6use nostr_sdk::{NostrSigner, PublicKey};
7 7
8use super::{ 8use super::{
9 SignerInfo, SignerInfoSource,
9 key_encryption::decrypt_key, 10 key_encryption::decrypt_key,
10 print_logged_in_as, 11 print_logged_in_as,
11 user::{get_user_details, UserRef}, 12 user::{UserRef, get_user_details},
12 SignerInfo, SignerInfoSource,
13}; 13};
14#[cfg(not(test))] 14#[cfg(not(test))]
15use crate::client::Client; 15use crate::client::Client;
@@ -18,7 +18,7 @@ use crate::client::MockConnect;
18use crate::{ 18use crate::{
19 cli_interactor::{Interactor, InteractorPrompt, PromptPasswordParms}, 19 cli_interactor::{Interactor, InteractorPrompt, PromptPasswordParms},
20 client::fetch_public_key, 20 client::fetch_public_key,
21 git::{get_git_config_item, Repo, RepoActions}, 21 git::{Repo, RepoActions, get_git_config_item},
22}; 22};
23 23
24/// load signer from git config and UserProfile from cache or relays 24/// load signer from git config and UserProfile from cache or relays