auth0 / node-jsonwebtoken

JsonWebToken implementation for node.js http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html
MIT License
17.72k stars 1.23k forks source link

superCtor.prototype is not an object or null #828

Open ralyodio opened 2 years ago

ralyodio commented 2 years ago

I'm getting this error using jsonwebtoken in the browser with sveltekit....anyone know how to fix/polyfill?

schester44 commented 2 years ago

same, seems to originate from the upstream jwt package

Screen Shot 2022-06-03 at 9 06 13 AM
ralyodio commented 2 years ago

we ended up moving this method to a node.js api that signs the token. I think signing a jwt token in the client is insecure anyway.

pietervdvn commented 1 year ago

I'm having the same issue when using the mangrove-reviews-library and bundling with vite

arnaldoperez commented 1 year ago

Same problem with Nuxt3 on the decode method