SubtleCrypto providing invalid CryptoKey
I'm trying to import a public key using
importKey
, but it just returns an empty CryptoKey, meanwhile in NodeJS it'll import just fine.
Code:
On the worker runtime it returns
In NodeJS it returns
5 Replies
It's not empty, it's just a quirk of console.log.
...no, it's empty, it throws errors if I try to use it. It looks like it might be a miniflare bug, since I guess it does actually work in the worker runtime
Well, Miniflare is the Worker runtime - and no, it isn't empty.
👍