Please include the following information in your post:
- auth0-node
- Version: 2.30.0 (auth0) and 2.20.10(@types/auth0)
- Platform: Node v10.23.0
- TypeError: Cannot read property ‘native’ of undefined
I am using a react app (React version: 17.0.1 with typescript). I have used a SPA client and integrated the app with auth0 SPA with react-auth0 SDK and it works fine.
Now I want to do some Management OPS from the react app like get user roles, etc.
For that, I can either make API calls to auth0 or use auth0 node SDK.
When I use the above node SDK, I get the error: TypeError: Cannot read property ‘native’ of undefined
Can someone help me figure out what’s the issue?
In the docs here: auth0 - npm, I saw it’s mentioned to set telemetry as false.
I don’t see any option to do so. In the class constructor param options, the typescript isn’t showing telemetry as one of the options.
I also tried setting telemetry as false forcibly in the options using // @ts-ignore
. It didn’t work either.