
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@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
The npm package @wrserver/auth receives a total of 0 weekly downloads. As such, @wrserver/auth popularity was classified as not popular.
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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.