Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@incodelang/accounts
Advanced tools
A simple account management server for your node.js application.
Install @incodelang/accounts with npm
npm install @incodelang/accounts
Install @incodelang/accounts with yarn
yarn add @incodelang/accounts
Integrate in your own express.js application
const { accountServer } = require('@incodelang/accounts')
const express = require('express')
const app = express();
app.listen(3000, "0.0.0.0");
accountServer({
app: app
})
Standalone express.js application
const { accountServer, sampleApp } = require('@incodelang/accounts')
accountServer({
app: sampleApp(
3000, // port [default] = 3000
"0.0.0.0" // host [default] = "0.0.0.0"
)
})
The parameters must be send in the request body as JSON format.
Response | Description |
---|---|
{"error": false, "message": "response message, e.g. data"} | The request was successful |
{"error": true, "message": "errror message"} | The request failed |
POST /api/v1/user/users/create
Parameter | Type | Description |
---|---|---|
username | string | The name of the user |
password | string | The password of the user |
POST /api/v1/user/users/delete
Parameter | Type | Description |
---|---|---|
username | string | The name of the user |
password | string | The password of the user |
POST /api/v1/user/users/login
Parameter | Type | Description |
---|---|---|
username | string | The name of the user |
password | string | The password of the user |
POST /api/v1/user/users/exists
Parameter | Type | Description |
---|---|---|
username | string | The name of the user |
POST /api/v1/user/users/update/username
Parameter | Type | Description |
---|---|---|
old | string | The current name of the user |
username | string | The new name of the user |
password | string | The password of the user |
POST /api/v1/user/users/update/password
Parameter | Type | Description |
---|---|---|
username | string | The name of the user |
password | string | The new password of the user |
old | string | The current password of the user |
POST /api/v1/user/users/data/store
Parameter | Type | Description |
---|---|---|
username | string | The name of the user |
password | string | The password of the user |
data | string | The actual data |
dataName | string | The name of the data |
POST /api/v1/user/users/data/delete
Parameter | Type | Description |
---|---|---|
username | string | The name of the user |
password | string | The password of the user |
dataName | string | The name of the data |
POST /api/v1/user/users/data
Parameter | Type | Description |
---|---|---|
username | string | The name of the user |
password | string | The password of the user |
dataName | string | The name of the data |
POST /api/v1/user/users/data/delete
Parameter | Type | Description |
---|---|---|
username | string | The name of the user |
password | string | The password of the user |
POST /api/v1/user/data/set
Parameter | Type | Description |
---|---|---|
username | string | The name of the user |
password | string | The password of the user |
value | string | The actual data |
key | string | The name of the data |
POST /api/v1/user/data/delete
Parameter | Type | Description |
---|---|---|
username | string | The name of the user |
password | string | The password of the user |
key | string | The name of the data |
POST /api/v1/user/data/allow
Parameter | Type | Description |
---|---|---|
username | string | The name of the user |
password | string | The password of the user |
key | string | The name of the data |
newUser | string | The name of the new user |
POST /api/v1/user/data/disallow
Parameter | Type | Description |
---|---|---|
username | string | The name of the user |
password | string | The password of the user |
key | string | The name of the data |
newUser | string | The name of the new user |
POST /api/v1/user/data/get
Parameter | Type | Description |
---|---|---|
username | string | The name of the user |
password | string | The password of the user |
key | string | The name of the data |
FAQs
An API for simple Account Management
The npm package @incodelang/accounts receives a total of 0 weekly downloads. As such, @incodelang/accounts popularity was classified as not popular.
We found that @incodelang/accounts 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.