square/js-jose

How can I set content encryption algorithm while using jose-jwe-jws.d.ts

rmonga opened this issue · 4 comments

In jose-jwe-jws.d.ts file, setContentEncryptionAlgorithm is not exposed for WebCryptographer. As of now its taking A256GCM as default value and since this method is not exposed in ts file I am unable to set content encryption algorithm which I need to use.
Can you please let me know how to set content encryption algorithm when I use jose-jwe-jws.d.ts.

Feel free to open a PR which adds the missing function to the type definition file.

I have the same problem, function does not exist

Edit: I had to use A256GCM type and lucky me, it is used by default

I have the same problem.

Feel free to open a PR which adds the missing function to the type definition file.