diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-05-03 02:38:01 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-05-03 02:38:01 -0400 |
commit | 1b0b0e9eaa546f50f6916cc631edaaa7dc8442e8 (patch) | |
tree | b464713fdc59bbdb9006842a03de9cbddbd1dddf /src/actions.rs | |
parent | e89ecaf0792dea1d36b6f071cb32bf79665c8e37 (diff) | |
download | rbw-1b0b0e9eaa546f50f6916cc631edaaa7dc8442e8.tar.gz rbw-1b0b0e9eaa546f50f6916cc631edaaa7dc8442e8.zip |
also store org keys in the local db
Diffstat (limited to 'src/actions.rs')
-rw-r--r-- | src/actions.rs | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/actions.rs b/src/actions.rs index 9284677..b891670 100644 --- a/src/actions.rs +++ b/src/actions.rs @@ -49,7 +49,15 @@ pub async fn unlock( pub async fn sync( access_token: &str, refresh_token: &str, -) -> Result<(Option<String>, (String, String, Vec<crate::db::Entry>))> { +) -> Result<( + Option<String>, + ( + String, + String, + std::collections::HashMap<String, String>, + Vec<crate::db::Entry>, + ), +)> { with_exchange_refresh_token_async( access_token, refresh_token, @@ -63,7 +71,12 @@ pub async fn sync( async fn sync_once( access_token: &str, -) -> Result<(String, String, Vec<crate::db::Entry>)> { +) -> Result<( + String, + String, + std::collections::HashMap<String, String>, + Vec<crate::db::Entry>, +)> { let config = crate::config::Config::load_async().await?; let client = crate::api::Client::new(&config.base_url(), &config.identity_url()); |