Skip to content

Commit

Permalink
Fix typo in trust_device (#640)
Browse files Browse the repository at this point in the history
## Type of change
```
- [x] Bug fix
- [ ] New feature development
- [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other
```

## Objective
Function was accidentally called `t` when it should have been called
`trust_device`
  • Loading branch information
dani-garcia authored Feb 29, 2024
1 parent c0fe4ac commit c3d809b
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bitwarden-uniffi/src/auth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl ClientAuth {
}

/// Trust the current device
pub async fn t(&self) -> Result<TrustDeviceResponse> {
pub async fn trust_device(&self) -> Result<TrustDeviceResponse> {
Ok(self.0 .0.write().await.auth().trust_device()?)
}
}
68 changes: 68 additions & 0 deletions languages/kotlin/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ Generator operations

**Output**: Arc<ClientGenerators>

### `exporters`

Exporters

**Arguments**:

- self: Arc<Self>

**Output**: Arc<ClientExporters>

### `auth`

Auth operations
Expand Down Expand Up @@ -138,6 +148,23 @@ password, use the email OTP.

**Output**: std::result::Result<,BitwardenError>

### `validate_password_user_key`

Validate the user password without knowing the password hash

Used for accounts that we know have master passwords but that have not logged in with a password.
Some example are login with device or TDE.

This works by comparing the provided password against the encrypted user key.

**Arguments**:

- self:
- password: String
- encrypted_user_key: String

**Output**: std::result::Result<String,BitwardenError>

### `new_auth_request`

Initialize a new auth request
Expand All @@ -160,6 +187,16 @@ Approve an auth request

**Output**: std::result::Result<AsymmetricEncString,BitwardenError>

### `trust_device`

Trust the current device

**Arguments**:

- self:

**Output**: std::result::Result<TrustDeviceResponse,BitwardenError>

## ClientAttachments

### `encrypt_buffer`
Expand Down Expand Up @@ -1287,6 +1324,37 @@ implementations.
</table>
</td>
</tr>
<tr>
<th>deviceKey</th>
<th>object</th>
<th></th>
</tr>
<tr>
<td colspan="3">
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td>device_key</td>
<td>string</td>
<td>The device's DeviceKey</td>
</tr>
<tr>
<td>protected_device_private_key</td>
<td></td>
<td>The Device Private Key</td>
</tr>
<tr>
<td>device_protected_user_key</td>
<td></td>
<td>The user's symmetric crypto key, encrypted with the Device Key.</td>
</tr>
</table>
</td>
</tr>
</table>

## `InitUserCryptoRequest`
Expand Down

0 comments on commit c3d809b

Please sign in to comment.