mirror of
https://github.com/bitwarden/mobile
synced 2026-01-06 10:34:07 +00:00
new enc key implementation
This commit is contained in:
@@ -6,8 +6,6 @@ using Bit.App.Models.Api;
|
||||
using Plugin.Settings.Abstractions;
|
||||
using Bit.App.Models;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Bit.App.Services
|
||||
{
|
||||
@@ -273,6 +271,11 @@ namespace Bit.App.Services
|
||||
|
||||
private async Task ProcessLoginSuccessAsync(SymmetricCryptoKey key, TokenResponse response)
|
||||
{
|
||||
if(response.Key != null)
|
||||
{
|
||||
_cryptoService.SetEncKey(new CipherString(response.PrivateKey));
|
||||
}
|
||||
|
||||
if(response.PrivateKey != null)
|
||||
{
|
||||
_cryptoService.SetPrivateKey(new CipherString(response.PrivateKey));
|
||||
|
||||
Reference in New Issue
Block a user