mirror of
https://github.com/bitwarden/mobile
synced 2025-12-19 17:53:47 +00:00
[PM-1351][PM-190] Add a mobile service to retrieve feature flags from API (#2431)
This commit is contained in:
@@ -585,6 +585,16 @@ namespace Bit.Core.Services
|
||||
|
||||
#endregion
|
||||
|
||||
#region Configs
|
||||
|
||||
public async Task<ConfigResponse> GetConfigsAsync()
|
||||
{
|
||||
var accessToken = await _tokenService.GetTokenAsync();
|
||||
return await SendAsync<object, ConfigResponse>(HttpMethod.Get, "/config/", null, !string.IsNullOrEmpty(accessToken), true);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Helpers
|
||||
|
||||
public async Task<string> GetActiveBearerTokenAsync()
|
||||
|
||||
Reference in New Issue
Block a user