
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@wrserver/auth
Advanced tools
@wrserver auth module to manage user login/logout/registration/validation/settings
Install this library is easy by cloning the repo. You can install trhought npm too:
Local installation
npm install @wrserver/auth
Global installation
npm install -g @wrserver/auth
We recomend to use the entire base package (core, crypt, data, auth, mail)
This module add the AuthController to the WRServer Set of elements. It provides a list of pages usefull to manage accounts server-side. Pages are: login, logout, register, verify, password (change), email (change). It depends ond DataModel and automatically use the DataService to manage a json table for user anagrafic storage.
At Server definition (settings)
import { WRServer }from '@wrserver/core';
import { AuthModule } from '@wrserver/auth';
//REMEMBER: don't use this static methods inside module definitions
AuthModule.withEncrypt(true|false).withMailHost(<hosts: [gmail.com, yahoo.com, ...]>)
.withService(<mail service: gmail>).withUser(<username>).withPass(<password>)
.withRegistrationMail(<AuthRegistrationMail>)
//Server definition
let server: WRServer = new WRServer(<dir>, <port>, [ AuthModule, ... Other Modules ... ], ...)
From your client send message for:
{
"target": "auth",
"section": "auth",
"page": "login",
"data": { "name": <name>, "password": <password> }
}
{
"target": "auth",
"section": "auth",
"page": "logout"
}
{
"target": "auth",
"section": "auth",
"page": "register",
"data": { "name": <name>, "password": <password>, "email": <email> }
}
{
"target": "auth",
"section": "auth",
"page": "verify",
"data": { "name": <name>, "token": <registrationToken> }
}
{
"target": "auth",
"section": "auth",
"page": "password",
"data": <newPass>
}
{
"target": "auth",
"section": "auth",
"page": "email",
"data": <newEmail>
}
If you like the project feel free to contact me on my .
Something gone wrong? Feel free to rise an issue!
Did you like this project and it was usefull? Help me improve my work:
FAQs
wrserver - auth module
We found that @wrserver/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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.