mirror of
https://github.com/bitwarden/android.git
synced 2024-12-20 08:12:26 +03:00
Apply auth service token when it is present.
This commit is contained in:
parent
ee883571da
commit
0cba25fc0c
1 changed files with 1 additions and 1 deletions
|
@ -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}");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue