mirror of
https://github.com/bitwarden/mobile
synced 2026-01-20 09:23:50 +00:00
[PM-2297] Add trust device login logic to auth service
This commit is contained in:
@@ -232,15 +232,6 @@ namespace Bit.App.Pages
|
||||
}
|
||||
else if (await _deviceTrustCryptoService.IsDeviceTrustedAsync())
|
||||
{
|
||||
// TODO MOVE THIS CODE TO AUTH SERVICE
|
||||
//if (await _deviceTrustCryptoService.IsDeviceTrustedAsync() && decryptOptions?.TrustedDeviceOption != null)
|
||||
//{
|
||||
// var key = await _deviceTrustCryptoService.DecryptUserKeyWithDeviceKeyAsync(decryptOptions?.TrustedDeviceOption.EncryptedPrivateKey, decryptOptions?.TrustedDeviceOption.EncryptedUserKey);
|
||||
// if (key != null)
|
||||
// {
|
||||
// await _cryptoService.SetEncKeyAsync(key);
|
||||
// }
|
||||
//}
|
||||
var task = Task.Run(async () => await _syncService.FullSyncAsync(true));
|
||||
SsoAuthSuccessAction?.Invoke();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user