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 convertingCryptoKeytoKeyObject(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
generateSecretnow supportsKeyObjectreturns (d18a089). This ensures seamless compatibility with JWT libraries such as jsonwebtoken, which accepts keys in form ofKeyObjectfor signing and verifying tokens.extractableas an argument togenerateSecretandgenerateKeyPairis no longer supported. Instead, users can pass anoptionsobject withextractableas a property (trueby default) (d18a089) (73a208b).