
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
#DarkLord Stateless Authentication Server - JWT based authentication
To create a JWT token you'll need to set a secret to the JWT_SECRET
env variable
Generate an authentication token.
Request:
{
"email": "myemail@address.com",
"password": "123456"
}
Response:
{
"token": "<authentication-token>",
"refresh": "<short-term-refresh-date>",
"expires": "<long-term-expiry-date>"
}
Create an account and generate an authentication token. Sets the verified flag to false and creates a verified token to email to the user.
Request:
{
"email": "myemail@address.com",
"password": "123456"
}
Response:
{
"token": "<authentication-token>",
"refresh": "<short-term-refresh-date>",
"expires": "<long-term-expiry-date>"
}
Change the password on the account.
Request:
{
"email": "myemail@address.com",
"password": "abcdef"
}
Headers:
Authorization: "<authentication-token>"
Creates a forgot password token and emails the user the link to reset.
Request:
{
"email": "myemail@address.com"
}
Accepts a token and a password, the server then update the account password
Request:
{
"token": "<forgotten-password-token>",
"password": "654321"
}
Accepts a token (sent to the user's email address), then sets the verified flag on the user to true and removes the verify token
Checks to see if the request is already authenticated, and if so responds with a new auth token that has an extended expiry date
Request:
Headers:
Authorization: "<authentication-token>"
FAQs
Stateless JWT based authentication
The npm package darklord receives a total of 5 weekly downloads. As such, darklord popularity was classified as not popular.
We found that darklord 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.