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
1 changed files with 1 additions and 1 deletions

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}");
}