Cannot create a correct "secretKey" for JWE #450
-
Hello there, Could you please share an example of "secretKey" creation? I tried all the variants from the following page from the DOC, but the same error is thrown: https://github.com/panva/jose/blob/main/docs/types/types.KeyLike.md
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
There is an API that aids to generate secrets of the right type and bit size for a particular algorithm. |
Beta Was this translation helpful? Give feedback.
There is an API that aids to generate secrets of the right type and bit size for a particular algorithm.
https://github.com/panva/jose/blob/v4.9.2/docs/functions/key_generate_secret.generateSecret.md#readme