Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@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.
Readme
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.
The npm package @koompi/auth receives a total of 1 weekly downloads. As such, @koompi/auth popularity was classified as not popular.
We found that @koompi/auth demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.