mirror of
https://github.com/bitwarden/mobile
synced 2026-01-03 09:03:35 +00:00
Apply auth service token when it is present.
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user