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:
parent
ee883571da
commit
0cba25fc0c
@ -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 New Issue
Block a user