mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
Added device identifier as header to api calls
This commit is contained in:
@@ -11,7 +11,12 @@ namespace Bit.App
|
||||
public TokenHttpRequestMessage()
|
||||
{
|
||||
var authService = Resolver.Resolve<IAuthService>();
|
||||
var appIdService = Resolver.Resolve<IAppIdService>();
|
||||
Headers.Add("Authorization", $"Bearer {authService.Token}");
|
||||
if(!string.IsNullOrWhiteSpace(appIdService.AppId))
|
||||
{
|
||||
Headers.Add("DeviceIdentifier", appIdService.AppId);
|
||||
}
|
||||
}
|
||||
|
||||
public TokenHttpRequestMessage(object requestObject)
|
||||
|
||||
Reference in New Issue
Block a user