mirror of
https://github.com/bitwarden/android.git
synced 2026-06-01 02:06:52 -05:00
Update the Bitwarden SDK (#1271)
This commit is contained in:
committed by
Álison Fernandes
parent
2523239557
commit
cec70a9c64
@@ -52,6 +52,7 @@ interface AuthSdkSource {
|
||||
*/
|
||||
suspend fun makeRegisterTdeKeysAndUnlockVault(
|
||||
userId: String,
|
||||
email: String,
|
||||
orgPublicKey: String,
|
||||
rememberDevice: Boolean,
|
||||
): Result<RegisterTdeKeyResponse>
|
||||
|
||||
@@ -78,12 +78,14 @@ class AuthSdkSourceImpl(
|
||||
|
||||
override suspend fun makeRegisterTdeKeysAndUnlockVault(
|
||||
userId: String,
|
||||
email: String,
|
||||
orgPublicKey: String,
|
||||
rememberDevice: Boolean,
|
||||
): Result<RegisterTdeKeyResponse> = runCatching {
|
||||
getClient(userId = userId)
|
||||
.auth()
|
||||
.makeRegisterTdeKeys(
|
||||
email = email,
|
||||
orgPublicKey = orgPublicKey,
|
||||
rememberDevice = rememberDevice,
|
||||
)
|
||||
|
||||
@@ -367,6 +367,7 @@ class AuthRepositoryImpl(
|
||||
.flatMap { organizationKeys ->
|
||||
authSdkSource.makeRegisterTdeKeysAndUnlockVault(
|
||||
userId = userId,
|
||||
email = account.profile.email,
|
||||
orgPublicKey = organizationKeys.publicKey,
|
||||
rememberDevice = authDiskSource.shouldTrustDevice,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user