
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
@dalisoft/jwt
Advanced tools
JWT Helper for Auth building from scratch
Note: Minimum Node.js version is v10.5 for working properly
// ES6
import {
sign,
verify,
decode,
generateToken,
refreshToken
} from "@dalisoft/jwt";
// or
// CommonJS
const JWT = require("@dalisoft/jwt");
const { sign, verify, decode, generateToken, refreshToken } = JWT;
const token = await sign(payload: object, secret: string | any, options: object, isSecure: boolean): string;
For more info see tests.
#sign(payload: object, secret: string | any, options: object, isSecure: boolean): stringReturns value of signed (+ maybe secured) token
#verify(token: string, secret: string | any, options: object): object | nullReturns value of signed (+ maybe secured) token
#decode(token: string, secret: string | any, options: object): object | nullDecodes value of signed (+ maybe secured) token without needing verifying signature
#generateToken(payload: string | object, secretOrPrivate: string | any, options?: object, secure?: boolean, salt?: string)Generates token and returns accessToken and refreshToken
#refreshToken({ accessToken, publicKey, salt refreshToken, privateKey,}: OKS)Generates new token by refreshing token and returns accessToken and refreshToken
MIT
FAQs
JWT Helper for Auth building from scratch
The npm package @dalisoft/jwt receives a total of 0 weekly downloads. As such, @dalisoft/jwt popularity was classified as not popular.
We found that @dalisoft/jwt 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
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.