Closed atmcalbt closed 1 month ago
Quick update: downgrading the library to 6.8.0 did the trick. Note that the issue still persists on newer versions.
Hi @atmcalbt! I do developer education at WorkOS. And I ran into the same issue with v7 on Cloudflare Workers.
We don't have an immediate path forward on this but we're looking into what's causing the issue and hope to have a better solution (than downgrading) soon.
@chantastic any progress on this? I've just hit this issue too.
Overview
I've set up a basic API using Cloudflare Workers + Hono. When integrating the WorkOS Node.js library I'm seeing
Unexpected error: TypeError: Illegal invocation
when calling asynchronous WorkOS functions (such asuserManagement.authenticateWithCode
).Example
Error
Extra
I'm using the latest version of the library (
^7.11.3
). I've tried to downgrade the version (down to 7.0.0) and I'm still seeing this. I'm also seeing this locally, not just remotely. Worth mentioning thatcode
andclientId
are strings.My best guess is that this is related to Hono? I'm unsure how to fix it, so any guidance is much appreciated.