We are trying to build a simple zoom app where we want to allow users to do networking within the zoom app.
To achieve this, our flow is simple:
- User installs the application - here, we create a user in our system and keep track of the same
- It hits the home endpoint that zoom calls on app load - at this point, we generate a token and set an httpOnly and secure cookie which consists of a session token. This session token is critical for our application because all the future APIs that will call our app will have this token. This token will identify the users in our app so we can allow or deny them based on that.
All is working fine, and we are getting hit on the home endpoint, and our code is generating a token and setting it as part of the response back to the app, which is nothing but a redirect URL with the cookie in it.
Though this cookie is httpOnly, secure: accurate as per docs, it’s not being set at zoom client. The only point to note here is our frontend and backend domains are different here.
Zoom FE URL: jayesh-client.ngrok.io
Backend URL: jayesh-server.ngrok.io
Can someone help drill this down to what can be causing this discrepancy? Is there any other changes we have to make to make this work? The token generation and set via cookie is a very critical piece of our application as it deals with security, so we want to make sure we get it right, and it works so there are no security loopholes.