
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@cuties/jwt
Advanced tools
Cutie extension for generating and validating JWT. It's based on the Async Tree Pattern.
You can find examples of using this library in the test directory.
npm install @cuties/jwt
npm test
npm run build
GeneratedHS256JWT(payload, secret[, minutesFromNow])
Generates JWT using HS256 algorithm. You can also use parameter minutesFromNow to set expiration time to payload(payload object will not be changed, it will be copied with set exp property).
IsHS256JWTValid(token, secret)
Validates token by secret. If it's valid this async object represents true, otherwise it represents false.
GeneratedRS256JWT(payload, privateKey[, minutesFromNow])
Generates JWT using RS256 algorithm. You can also use parameter minutesFromNow to set expiration time to payload(payload object will not be changed, it will be copied with set exp property).
IsRS256JWTValid(token, publicKey)
Validates token by publicKey. If it's valid this async object represents true, otherwise it represents false.
JWTOfRequest(request[, tokenName])
Retrieves JWT from Authorization header of incoming request parsing by tokenName(by default it's Bearer).
JWTPayload(token)
Retrieves payload from token.
JWTPayloadValue(token, key)
Retrieves payload value from token by key.
FAQs
Cutie extension for generating and validating JWT for authentication.
We found that @cuties/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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

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.