Description
I’m receiving the following error when following the Zoom OAuth Hello World tutorial on Github: https://github.com/zoom/zoom-oauth-sample-app
Error
SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse ()
at Request._callback (/Users/username/Desktop/zoom-oauth-sample-app/index.js:29:25)
at self.callback (/Users/username/Desktop/zoom-oauth-sample-app/node_modules/request/request.js:185:22)
at Request.emit (events.js:315:20)
at Auth.onRequest (/Users/username/Desktop/zoom-oauth-sample-app/node_modules/request/lib/auth.js:132:18)
at Request.auth (/Users/username/Desktop/zoom-oauth-sample-app/node_modules/request/request.js:1341:14)
at /Users/username/Desktop/zoom-oauth-sample-app/index.js:82:12
at Layer.handle [as handle_request] (/Users/username/Desktop/zoom-oauth-sample-app/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/username/Desktop/zoom-oauth-sample-app/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/Users/username/Desktop/zoom-oauth-sample-app/node_modules/express/lib/router/route.js:112:3)
Which App Type (OAuth / Chatbot / JWT / Webhook)?
OAuth
Which Endpoint/s?
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.
How To Reproduce (If applicable)
https://zoom.us/oauth/authorize?client_id=HC2jEssnQV6w2VZfpKfmCQ&response_type=code&redirect_uri=https%3A%2F%2Fe7fa221afb3b.ngrok.io
Screenshots (If applicable)
If applicable, add screenshots to help explain your problem.
Additional context
I have created the .env file and included the clientID, clientSecret, and redirectURL using https. I’ve also included the redirectURL from ngrok in my app field “Redirect URL for OAuth” as well as the whitelisted URLs. I’ve double checked there are no additional characters in the .env file. I’ve also checked other forums and have not found a working solution.