Questions tagged [node-jose]

A JavaScript implementation of the JSON Object Signing and Encryption (JOSE) for current web browsers and node.js-based servers. This library implements (wherever possible) all algorithms, formats, and options in JWS, JWE, JWK, and JWA and uses native cryptographic support (WebCrypto API or node.js' "crypto" module) where feasible. Use this tag for questions regarding node-jose.

17 questions
0
votes
1 answer

Error: no importer for key when importing "pem" key

The app follows the instruction on node-jose 2.0.0 for import .pem key. Here is the documentation: To import and existing Key from a PEM or DER: // input is either a: // * String serialization of a JSON JWK/(base64-encoded) PEM/(binary-encoded)…
user938363
  • 9,990
  • 38
  • 137
  • 303
0
votes
1 answer

Is options ignoreExpiration still valid in node-jose?

In jasonwebtoken, the option ignoreExpiration can be used as below for HS256: const jwt = require("jsonwebtoken"); const decoded = await jwt.verify(jwt_token, process.env.jwtPrivateKey, {ignoreExpiration: true}); Now the app is migrating to…
user938363
  • 9,990
  • 38
  • 137
  • 303
1
2