1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-17 16:53:26 +00:00

[PM-2713] rename toggle method, don't reset enc user key

This commit is contained in:
Jacob Fink
2023-07-31 12:57:50 -04:00
parent bb5a7383a8
commit c2ddbb7eff
4 changed files with 4 additions and 9 deletions

View File

@@ -43,15 +43,10 @@ namespace Bit.Core.Services
_orgKeys = null;
}
public async Task ToggleKeysAsync()
public async Task RefreshKeysAsync()
{
// refresh or clear the pin key
await SetUserKeyAsync(await GetUserKeyAsync());
// refresh or clear the encrypted user key
var encUserKey = await _stateService.GetUserKeyMasterKeyAsync();
await _stateService.SetUserKeyMasterKeyAsync(null);
await _stateService.SetUserKeyMasterKeyAsync(encUserKey);
}
public async Task SetUserKeyAsync(UserKey userKey, string userId = null)