Auth Error with cf worker
Describe the bug OIDC auth doesn't work with cf worker.
Expected behavior OIDC auth works with cf worker.
Cloudflare Worker Error cloudflare worker: { "source": { "level": "error", "message": "Error: [unenv] crypto.createSign is not implemented yet!", "$cloudflare": { "$metadata": { "id": "01JYVPRZXG1HKFA2WAXAKNX43J", "type": "cf-worker", "error": "Error: [unenv] crypto.createSign is not implemented yet!", "messagePattern": "Error: [unenv] <DOMAIN> is not implemented yet!" } } }, "dataset": "cloudflare-workers", "timestamp": "2025-06-28T16:43:50.576Z", "$workers": { "truncated": false, "event": { "request": { "url": "https://jaen.netsnek.com/graphql", "method": "POST", "path": "/graphql" } }, "outcome": "ok", "scriptName": "jaen-agent", "eventType": "fetch", "executionModel": "stateless", "scriptVersion": { "id": "d7793016-af66-47cb-bc50-132d7b4a7e61" }, "requestId": "956ea5387cfcdc62" }, "$metadata": { "id": "01JYVPRZXG1HKFA2WAXAKNX43J", "requestId": "956ea5387cfcdc62", "trigger": "POST /graphql", "service": "jaen-agent", "level": "error", "error": "Error: [unenv] crypto.createSign is not implemented yet!", "message": "Error: [unenv] crypto.createSign is not implemented yet!", "account": "a4b0e1ba603b529a64d355679ff2911a", "type": "cf-worker", "fingerprint": "c0de9c3ff8d0326b0127e5914612c8a7", "origin": "fetch", "messageTemplate": "Error: [unenv] <DOMAIN> is not implemented yet!" }, "links": [] }
I think this error might be related to the jsonwebtoken library because pylon does not utilize crypto.createSign itself.
Workerd does support the crypto in there recent versions. So just make sure you update to wrangler@4 and use a up-to-date compatibility_date = "2025-07-23" in your wrangler.toml