mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
check authed before checking if token has premium (#1074)
This commit is contained in:
parent
52261f99d7
commit
db12cd92b7
1 changed files with 6 additions and 0 deletions
|
@ -124,6 +124,12 @@ namespace Bit.Core.Services
|
|||
|
||||
public async Task<bool> CanAccessPremiumAsync()
|
||||
{
|
||||
var authed = await IsAuthenticatedAsync();
|
||||
if (!authed)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
var tokenPremium = _tokenService.GetPremium();
|
||||
if (tokenPremium)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue