Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton committed Jan 23, 2024
1 parent 7e51015 commit 9a89487
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/bitwarden-uniffi/src/auth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ impl ClientAuth {
.await?)
}

/// Initialize a new passwordless login request
/// Initialize a new auth request
pub async fn new_auth_request(&self, email: String) -> Result<AuthRequestResponse> {
Ok(self.0 .0.write().await.auth().new_auth_request(&email)?)
}

Check warning on line 100 in crates/bitwarden-uniffi/src/auth/mod.rs

View check run for this annotation

Codecov / codecov/patch

crates/bitwarden-uniffi/src/auth/mod.rs#L98-L100

Added lines #L98 - L100 were not covered by tests

/// Approve a passwordless login request
/// Approve an auth request
pub async fn approve_auth_request(&self, public_key: String) -> Result<AsymmetricEncString> {
Ok(self
.0
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden/src/auth/auth_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub(crate) fn auth_request_decrypt_user_key(
Ok(key.parse()?)
}

/// Approve a passwordless login request.
/// Approve an auth request.
///
/// Encrypts the user key with a public key.
pub(crate) fn approve_auth_request(
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden/src/mobile/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub enum InitUserCryptoMethod {
pin_protected_user_key: EncString,
},
AuthRequest {
/// Private Key generated by the `crate::auth::new_passwordless_request`.
/// Private Key generated by the `crate::auth::new_auth_request`.
request_private_key: String,
/// User Key protected by the private key provided in `AuthRequestResponse`.
protected_user_key: AsymmetricEncString,
Expand Down

0 comments on commit 9a89487

Please sign in to comment.