I'm looking for a library that supports json object signing with jwt and ed25519 encryption key. I've looked around and couldn't find anything nodejs library that would support EdDSA type encryption.
The jwt website mentions jose as the only one that supports ed25519 encryption, but after going through the official documentation I was not able to confirm that it's the case...
In my understanding it should be as easy as
const signedJwt = jwt.sign({ foo: 'bar' }, privateKey, { algorithm: 'EdDSA' });
I would appreciate any tips on how to achieve the goal whether it is library or a custom approach.