Oauth2 sample project problems req.query.code when redirecting to a hosted url

Hi, I am currently in the process of integrating a web based application with Zoom using OAuth2 as referred by the zoom docs.

I have successfully followed https://github.com/zoom/zoom-oauth-sample-app the sample app with ngrok. This works great and the (req.query.code) contains the code when logging that is also reflected in the redirect url.

However when I tried to switch the redirect url to our web based application req.query.code returns an empty object but successfully redirects me into our application with the code reflected in the given url.

e.g. {redirectUrlpassed}?code=ydYVF60t53_ulm0ZqhEQRSYOh-AQriGsA

here is the screenshot for this the above mentioned issue and as mentioned our log of req.query.code returns an undefined.

Appreciate the help!

Hey @rbudiono,

Is your web based application hosting the sample app code?

Notice the if statement that is checking for the code, that means the code query param is not present once you land on your redirect url.

Thanks,
Tommy