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

[SG-744] Add claimed domain logic to mobile (#2333)

This commit is contained in:
André Bispo
2023-02-20 14:49:20 +00:00
committed by GitHub
parent b26b9ea41b
commit 3f72d35145
14 changed files with 140 additions and 7 deletions

View File

@@ -1208,6 +1208,18 @@ namespace Bit.Core.Services
))?.Profile?.AvatarColor;
}
public async Task<string> GetPreLoginEmailAsync()
{
var options = await GetDefaultStorageOptionsAsync();
return await GetValueAsync<string>(Constants.PreLoginEmailKey, options);
}
public async Task SetPreLoginEmailAsync(string value)
{
var options = await GetDefaultStorageOptionsAsync();
await SetValueAsync(Constants.PreLoginEmailKey, value, options);
}
// Helpers
private async Task<T> GetValueAsync<T>(string key, StorageOptions options)