Comments (6)
This is not a bug, it's just an ES Next language feature not available to older node versions. You can see [email protected]
has a runtime requirement of node >=12.0.0 right in the readme.
You can also see extensive CI of both projects
- https://github.com/panva/jose/commit/eeb4ab56a11feb750562e323b580d87b7b061f08/checks
- https://github.com/panva/node-oidc-provider/commit/627e9aa7679832ba90387105c01daa6db9b28435/checks
from jose.
Ah, I see. I hadn't seen that syntax before. Sorry for the bad issue.
from jose.
No problem.
Node >=12.0.0 is the described minimal version in both projects README's as well as package.json (so during npm/yarn install you must've omitted a warning). It is for its KeyObject and crypto
module additions that are only available in the Node 12 trackk. This new private class fields syntax is just something which iām glad to have available as a side effect.
from jose.
#37 https://v8.dev/features/class-fields
from jose.
I've made @panva/jose compatible with lts/dubnium, it is now being tested with Node.js ^10.13.0 || >=12.0.0
and Electron ^6.0.0
It is not without caveats, but they are acceptable.
- Importing X.509 certificates and handling x5c is only supported when Node.js >= 12.0.0 runtime is detected
- OKP keys are only supported when Node.js >= 12.0.0 runtime is detected
from jose.
Cool, sounds great, thanks! I think supporting active LTS versions of node is a great idea. In my particular case, upgrading to node 12 wasn't a problem, so I upgraded our project to node 12.x and both oidc-provider
and @panva/jose
have been working great. š
from jose.
Related Issues (20)
- Error: unsupported key management (decryption) alg: ECDH-ES+A256KW HOT 1
- Verifying JWT with symmetric key HOT 2
- Unable to build Angular project with Jose HOT 1
- SignJWT exp type error HOT 2
- Cannot verify id token using remote jwks HOT 3
- Can't verify azure token HOT 3
- Bun support ED25519 HOT 1
- Bun bun bun!! HOT 17
- Bun: SyntaxError: Import named 'KeyObject' not found in module 'crypto'. HOT 3
- Mocking URLs with msw/nock doesn't work with named imports. HOT 1
- [ES384] adding a single letter to the signature part causing a successful verification HOT 7
- Type "GetKeyFunction" is present in "types.d.ts" but not exported in "index.d.ts" HOT 1
- Check for `jwk.oth` should also check for `null` value HOT 2
- CryptoKey is not extractable HOT 1
- JWKS Timeout : request timed out HOT 1
- Cannot read properties of undefined (reading 'base64url') HOT 7
- Claims validation should not mutate incoming `requiredClaims` array HOT 6
- jose importSPKI error TypeError: "spki" must be SPKI formatted string HOT 2
- Bun: Export named 'diffieHellman' not found in module 'crypto'. HOT 1
- Maybe slightly tweak the exports? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jose.