1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-06 18:43:43 +00:00

clear push token on unregister

This commit is contained in:
Kyle Spearrin
2016-08-06 00:41:00 -04:00
parent 38184e4893
commit b1da05474a
4 changed files with 34 additions and 2 deletions

View File

@@ -12,7 +12,10 @@ namespace Bit.App
{
var authService = Resolver.Resolve<IAuthService>();
var appIdService = Resolver.Resolve<IAppIdService>();
Headers.Add("Authorization", $"Bearer {authService.Token}");
if(authService.IsAuthenticated)
{
Headers.Add("Authorization", $"Bearer {authService.Token}");
}
if(!string.IsNullOrWhiteSpace(appIdService.AppId))
{
Headers.Add("DeviceIdentifier", appIdService.AppId);