1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-12-22 16:18:21 +01:00

Apply auth service token when it is present.

This commit is contained in:
Kyle Spearrin 2016-08-29 23:15:03 -04:00
parent ee883571da
commit 0cba25fc0c

View File

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