Skip to content

Commit 574f7c7

Browse files
committed
Fix uniffi
1 parent ca84993 commit 574f7c7

File tree

1 file changed

+6
-1
lines changed
  • crates/bitwarden-uniffi/src/vault

1 file changed

+6
-1
lines changed

crates/bitwarden-uniffi/src/vault/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ impl VaultClient {
4646
/// - OTP Auth URI
4747
/// - Steam URI
4848
pub fn generate_totp(&self, key: String, time: Option<DateTime<Utc>>) -> Result<TotpResponse> {
49-
Ok(self.0.generate_totp(key, time).map_err(Error::Totp)?)
49+
Ok(self
50+
.0
51+
.totp()
52+
.generate_totp(key, time)
53+
.map_err(Error::Totp)?)
5054
}
5155

5256
/// Generate a TOTP code from a provided cipher list view.
@@ -57,6 +61,7 @@ impl VaultClient {
5761
) -> Result<TotpResponse> {
5862
Ok(self
5963
.0
64+
.totp()
6065
.generate_totp_cipher_view(view, time)
6166
.map_err(Error::Totp)?)
6267
}

0 commit comments

Comments
 (0)