Releases: starkfire/jwt-key-generator
Releases · starkfire/jwt-key-generator
v0.5.1
v0.5.0
generateKeyPair()
can now return keys asKeyObject
(0628690)- added
toKeyObject()
for convertingCryptoKey
toKeyObject
(15f58ac) independent fromgenerateSecret()
andgenerateKeyPair()
- added restrictions for
exportKey()
- it should not allow public key exports for PKCS8 and private key exports for SPKI (4311c9a)
v0.4.1
v0.4.0
generateSecret
now supportsKeyObject
returns (d18a089). This ensures seamless compatibility with JWT libraries such as jsonwebtoken, which accepts keys in form ofKeyObject
for signing and verifying tokens.extractable
as an argument togenerateSecret
andgenerateKeyPair
is no longer supported. Instead, users can pass anoptions
object withextractable
as a property (true
by default) (d18a089) (73a208b).