Calling & Config
This commit is contained in:
parent
1baaad2f76
commit
e4bea23dc2
8 changed files with 47 additions and 31 deletions
|
|
@ -70,7 +70,7 @@ pub async fn get_iota_id(user_id: Uuid) -> Option<Uuid> {
|
|||
let client = client();
|
||||
let res = client
|
||||
.get(&url)
|
||||
.header("Authorization", CONFIG.lock().await.omikron_id.to_string())
|
||||
.header("Authorization", CONFIG.read().await.omikron_id.to_string())
|
||||
.header("Content-Type", "application/json")
|
||||
.send()
|
||||
.await
|
||||
|
|
@ -96,7 +96,7 @@ pub async fn is_private_key_valid(user_id: Uuid, pk_hash: &str) -> bool {
|
|||
let client = client();
|
||||
let res = client
|
||||
.get(&url)
|
||||
.header("Authorization", CONFIG.lock().await.omikron_id.to_string())
|
||||
.header("Authorization", CONFIG.read().await.omikron_id.to_string())
|
||||
.header("PrivateKeyHash", pk_hash)
|
||||
.header("Accept", "application/json")
|
||||
.send()
|
||||
|
|
|
|||
Loading…
Reference in a new issue