public override async Task <bool> IsTwoFactorClientRememberedAsync(TUser user)
        {
            var result = await Context.AuthenticateAsync(IdentityConstants.TwoFactorRememberMeScheme);

            return(result?.Principal != null &&
                   result.Principal.FindFirstValue(ClaimTypes.Name) == user.Id.ToString() &&
                   MajidZeroClaimsIdentityHelper.GetTenantId(result.Principal) == user.TenantId);
        }
        public async Task <int?> GetVerifiedTenantIdAsync()
        {
            var result = await Context.AuthenticateAsync(IdentityConstants.TwoFactorUserIdScheme);

            if (result?.Principal == null)
            {
                return(null);
            }

            return(MajidZeroClaimsIdentityHelper.GetTenantId(result.Principal));
        }