-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Right-hand side of 'instanceof' is not an object #20
Comments
Cloudflare Workers not using Node.js. Maybe this will help cloudflare-worker-jwt
|
Consider using jose instead of jsonwebtoken |
Not sure whether or not the following would fix this issue specifically, but for anyone wanting to provide the signing/private key from a variable/constant, it would need to be concatenated with
becomes "-----BEGIN PRIVATE KEY-----\nfazmQVRp7bRp3Mb5EzQcVRlOWZt7uaDo8RvgHCp7r6z7tyUyAEpN1vj7gEJHiOeY\nXA3kRXAZYUQaoToDEOh00N128q9FAvz2tCu47cwXVXefhp2B6gT4v7XXMd2pBldM\nT9GbWO6cXs4QVFxXQM1YGGBS9TfyMqDZTQ0gbviN7u6Yb6DcP9TGHB8QSDpMxzLy\nv50IEodS\n-----END PRIVATE KEY-----" |
Did anyone have any luck getting this to run in Cloudflare workers? |
Hey. Hey,
I'm trying to send a test notification in my API, but I'm getting this error:
I need to load a private key into a variable because my API server does not have a file system. And according to the types signingKey should be a string.
Here is my code (all variables are fictitious):
Node.js: v18.17.1
I tried changing the formatting to:
None of that helped.
It could be related to auth0/node-jsonwebtoken#939
The text was updated successfully, but these errors were encountered: