Convex runtime does not support SecureRandom
I am trying to create tokens which I can use for auth.
Docs say that
crypto
, CryptoKey
, and SubtleCrypto
are available. I think I'm only using those APIs, however...
The following error is thrown from the dashboard when running my mutation.
I'm trying to debug this runtime issue. The full code of the mutation that's throwing the error is this:
What needs to change so I can do things like importKey, and verify JWTs without moving to actions?2 Replies
You caught the docs over-promising 🙃 . Convex doesn't support ECDSA because queries and mutations are deterministic. I think we'll implement these eventually but it takes some designing. In the meantime, is it possible to use a different algorithm for your jwt?
People have had success with RSASSA-PKCS1-v1_5 for jwts, i believe
Oh okay 👍 Yeah I can try a different algorithm