Closed foray1010 closed 4 years ago
I intentionally don't expose the dependency, i had that before and it was still messy.
If you want to work with the keys returned by keystore in your own code, i suggest you key.toJWK()
and then jose.JWK.asKey(jwk)
.
I was able to reuse the keystore by jose.JWKS.asKeyStore(keystore.toJWKS())
, thank you!
That works too.
Is your feature request related to a problem? Please describe. I am using following version
As openid-client doesn't support logout token validation by default, I will have to install jose and call
jose.JWT.LogoutToken.verify
manually. This function requires akey
that I would like to get byissuer.keystore()
, but the problem is as my jose version is not sync with openid-client one because the openid-client is installed a few days ago and still using josev1.22.0
,jose.JWT.LogoutToken.verify
will throwkey must be an instance of a key instantiated by JWK.asKey, a valid JWK.asKey input, or a JWKS.KeyStore instance
Describe the solution you'd like
exports.jose = require('jose')
so that I can reuse the same jose instanceDescribe alternatives you've considered maybe peer dependency? or do not use
instanceof
but use like class name for checking?Additional context