checkCustomerAccount = $checkCustomerAccount; $this->customerTokenService = $customerTokenService; } /** * @inheritdoc */ public function resolve( Field $field, $context, ResolveInfo $info, array $value = null, array $args = null ) { $currentUserId = $context->getUserId(); $currentUserType = $context->getUserType(); $this->checkCustomerAccount->execute($currentUserId, $currentUserType); return ['result' => $this->customerTokenService->revokeCustomerAccessToken((int)$currentUserId)]; } }