mirror of
https://github.com/bitwarden/mobile.git
synced 2024-09-20 02:51:40 +02:00
Added device identifier as header to api calls
This commit is contained in:
parent
57b6c9f67c
commit
515412f863
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user