-
Trying to use jose in the chrome, and not having luck. I don't think this a bug, but more of user error on some level.
in chrome error is :
I also tried using the browser only version of the package, but resulted in a export error. I'm using vite as my developement env, which uses esbuild. Any examples of browser use would be greatly appreciated, if they are different from the docs. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@fazulk the sign argument is meant to be a KeyLike (type alias), in the browser this means all asymmetric keys need to be CryptoKey instances, e.g. imported via https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey |
Beta Was this translation helpful? Give feedback.
@fazulk the sign argument is meant to be a KeyLike (type alias), in the browser this means all asymmetric keys need to be CryptoKey instances, e.g. imported via https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey