We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca84993 commit 574f7c7Copy full SHA for 574f7c7
crates/bitwarden-uniffi/src/vault/mod.rs
@@ -46,7 +46,11 @@ impl VaultClient {
46
/// - OTP Auth URI
47
/// - Steam URI
48
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)?)
+ Ok(self
50
+ .0
51
+ .totp()
52
+ .generate_totp(key, time)
53
+ .map_err(Error::Totp)?)
54
}
55
56
/// Generate a TOTP code from a provided cipher list view.
@@ -57,6 +61,7 @@ impl VaultClient {
57
61
) -> Result<TotpResponse> {
58
62
Ok(self
59
63
.0
64
60
65
.generate_totp_cipher_view(view, time)
66
.map_err(Error::Totp)?)
67
0 commit comments