mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 15:53:44 +00:00
check authed before checking if token has premium (#1074)
This commit is contained in:
@@ -124,6 +124,12 @@ namespace Bit.Core.Services
|
|||||||
|
|
||||||
public async Task<bool> CanAccessPremiumAsync()
|
public async Task<bool> CanAccessPremiumAsync()
|
||||||
{
|
{
|
||||||
|
var authed = await IsAuthenticatedAsync();
|
||||||
|
if (!authed)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var tokenPremium = _tokenService.GetPremium();
|
var tokenPremium = _tokenService.GetPremium();
|
||||||
if (tokenPremium)
|
if (tokenPremium)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user