CryptoKey is not defined fails only on Firefox #23144
Unanswered
NanoCode012
asked this question in
Questions and Help
Replies: 1 comment
-
In case someone is looking for an answer. A similar issue (with same root cause) and workaround is mentioned in #14600 (comment) It took me several hours after finding this discussion (with no reply) before I found the other bug report and thought "this sounds similar" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am currently trying out cypress, but met an error
CryptoKey is not defined
. I am trying to sign a fake jwt usingjose
https://github.com/panva/jose/blob/main/docs/classes/jwt_sign.SignJWT.md#readme .From what I understand,
jose
would use the browser/node's runtimecrypto
library. Since, cypress launches a browser, I do not think it should be a problem, but it would seem to be related. I do not see any Issues on both repo talking about it. I can use thejose
library on my own nextjs code. It is only Cypress (and also Jest) which had this issue.Test code:
Environment:
Tested working other browsers(Edge, Electron, Chrome), but fails on Firefox.
Edit: My workaround is to test on Chrome instead, and manual test on Firefox when needed.
Beta Was this translation helpful? Give feedback.
All reactions