From 0cba25fc0cf535f1ecf3f975ce1e3051240691b6 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 29 Aug 2016 23:15:03 -0400 Subject: [PATCH] Apply auth service token when it is present. --- src/App/Utilities/TokenHttpRequestMessage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/Utilities/TokenHttpRequestMessage.cs b/src/App/Utilities/TokenHttpRequestMessage.cs index 2ef025297..bfc11db02 100644 --- a/src/App/Utilities/TokenHttpRequestMessage.cs +++ b/src/App/Utilities/TokenHttpRequestMessage.cs @@ -12,7 +12,7 @@ namespace Bit.App { var authService = Resolver.Resolve(); var appIdService = Resolver.Resolve(); - if(authService.IsAuthenticated) + if(!string.IsNullOrWhiteSpace(authService.Token)) { Headers.Add("Authorization", $"Bearer {authService.Token}"); }