getServiceFactory()->create('App')->getUserData(); } public function postActionDestroyAuthToken($params, $data) { $token = $data['token']; if (empty($token)) { throw new BadRequest(); } $auth = new \Espo\Core\Utils\Auth($this->getContainer()); return $auth->destroyAuthToken($token); } }