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