
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.
This is basically just node-jws augmented so that
secretOrKey
can be a JWK or set of JWKs.
$ npm install jws-jwk
var jws = require('jws-jwk');
var signature = getJWSFromSomwhere();
var jwk = { kid: '1234', kty: 'RSA', n: '12345...XYZ=', e: 'AQAB' };
if (jws.verify(signature, jwk)) {
// Do stuff here, signature was verified using the JWK
}
You might want to make it so when other code you are using does the following,
the module in the variable jws
is augmented.
var jws = require('jws');
One reason to do this is to make modules using node-jws work with JWKs, e.g. jsonwebtoken. Requiring node-jws-jwk like so will add its augmented functions to the node-jws module:
var jws = require('jws-jwk').shim();
This module shims in jsrsasign when browserified
to make jws.verify
work in-browser (with JWKs and normally).
FAQs
Adds (some) support for JWKs to node-jws
The npm package jws-jwk receives a total of 263 weekly downloads. As such, jws-jwk popularity was classified as not popular.
We found that jws-jwk 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.