
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@kohost/api-client
Advanced tools
API client, models, schemas, commands, and events for Kohost applications
Kohost API Client is a Node.js and Browser library for interacting with the Kohost API. It provides a simple and convenient way to access the API, as well as standard models, schemas, commands, and events.
npm install @kohost/api-client
The library consists of several modules, including:
import { Client } from "@kohost/api-client";
const kohost = new Client({
url: "https://localhost:8080/v3",
propertyId: "development",
});
Currently, the only supported mode of Authentication with the API is via an HTTP Only cookie. You can login a user via the following command to get a cookie.
const email = "help@kohost.io";
await kohost.RequestLoginLink({
data: { email },
});
/** OR via Phone **/
const phone = "+17025555555";
await kohost.RequestLoginLink({
data: { phone },
});
Click the link in the email or SMS to authenticate.
Simply use the LoginUser
use case to provide a user ID via the sub
parameter, along with the token
parameter.
const sub = "user-id-from-api";
const token = "token-provided-by-api";
await kohost.LoginUser({
data: { sub, token },
});
A successful response will set an HTTP only cookie in the browser.
FAQs
API client, models, schemas, commands, and events for Kohost applications
The npm package @kohost/api-client receives a total of 135 weekly downloads. As such, @kohost/api-client popularity was classified as not popular.
We found that @kohost/api-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.