diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-05-03 01:07:58 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-05-03 01:07:58 -0400 |
commit | e28b23f713fda315d28aaf6a375a720aae166f78 (patch) | |
tree | 4e4d833a234a06e1c3efbd21030a8ac9984a2ae0 /src/bin/rbw-agent/actions.rs | |
parent | 047550f2368d134c9d5dca60aeb0b56fe151a323 (diff) | |
download | rbw-e28b23f713fda315d28aaf6a375a720aae166f78.tar.gz rbw-e28b23f713fda315d28aaf6a375a720aae166f78.zip |
save the private key to the local db
Diffstat (limited to 'src/bin/rbw-agent/actions.rs')
-rw-r--r-- | src/bin/rbw-agent/actions.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/rbw-agent/actions.rs b/src/bin/rbw-agent/actions.rs index afe76c8..d17f5f1 100644 --- a/src/bin/rbw-agent/actions.rs +++ b/src/bin/rbw-agent/actions.rs @@ -189,7 +189,7 @@ pub async fn sync(sock: &mut crate::sock::Sock) -> anyhow::Result<()> { } else { return Err(anyhow::anyhow!("failed to find refresh token in db")); }; - let (access_token, (protected_key, entries)) = + let (access_token, (protected_key, protected_private_key, entries)) = rbw::actions::sync(&access_token, &refresh_token) .await .context("failed to sync database from server")?; @@ -197,6 +197,7 @@ pub async fn sync(sock: &mut crate::sock::Sock) -> anyhow::Result<()> { db.access_token = Some(access_token); } db.protected_key = Some(protected_key); + db.protected_private_key = Some(protected_private_key); db.entries = entries; db.save_async(&email) .await |