
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 Mid‑Year Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
@koompi/auth
Advanced tools
This is a client library for interacting with the API of a service called KOOMPI Auth. It provides functions for login, registration, password change, and Google login.
This is a client library for interacting with the API of a service called KOOMPI Auth. It provides functions for login, registration, password change, and Google login.
To use this library, you need to have Node.js and npm installed on your system. Then, follow these steps:
npm install @koompi/auth
or
yarn add @koompi/auth
First, import the API client into your JavaScript/TypeScript file:
import auth from "@koompi/auth";
To perform a login operation, use the login function:
auth.login({ email: "user@example.com", password: "password123" })
.then((data) => {
// Handle the response data
})
.catch((error) => {
// Handle any errors
});
To register a new user, use the register function:
auth.register({
fullname: "John Doe",
email: "johndoe@example.com",
password: "password123",
confirmPassword: "password123",
})
.then((data) => {
// Handle the response data
})
.catch((error) => {
// Handle any errors
});
To perform a login operation using Google, use the loginWithGoogle function:
auth.loginWithGoogle({ tokenId: "googleToken123" })
.then((data) => {
// Handle the response data
})
.catch((error) => {
// Handle any errors
});
To register a new user offline, use the offlineRegister function:
auth.offlineRegister({
firstname: "John",
lastname: "Doe",
email: "johndoe@example.com",
password: "password123",
})
.then((data) => {
// Handle the response data
})
.catch((error) => {
// Handle any errors
});
To change the password, use the changePassword function:
auth.changePassword({
token: "changeToken123",
password: "newPassword123",
confirmPassword: "newPassword123",
})
.then((data) => {
// Handle the response data
})
.catch((error) => {
// Handle any errors
});
Contributions are welcome! If you find any issues or have suggestions for improvements, please create a new issue or submit a pull request.
This project is licensed under the MIT License.
FAQs
This is a client library for interacting with the API of a service called KOOMPI Auth. It provides functions for login, registration, password change, and Google login.
We found that @koompi/auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.