Can not login when in app marketpace window

I have a simple node.js app that can authenticate, view you meetings and get the user ID. This works fine in a separate browser.
When I load in the Zoom App Browser, the static pages work fine, but those wishing to access the Zoom API for data do not work.
This includes trying to log in.
How should you authenticate/log in?
I don’t think my session is logged in.

I click on the links where the API will be used and nothing happens.

@expertswho ,
Thank you for posting in the Zoom Developer Forum! I’m happy to help. To start, are you building a Zoom App?

Zoom App

If so, then the recommended way to authenticate users within the Zoom Client is through in-client OAuth:

We have a sample implementation you can reference. Here is the link to the Zoom App sample:

thank you.
I have the login auth working in a plain HTML window.
I am then able to see my future meetings.
But this does not work when launched in the marketplace app inside a Zoom live meeting.
I am looking to make an app that works within the Zoom APP. It will read and write data to the Zoom meeting chat and Zoom Polls and display information on the Zoom background and as an overlay for the user window and in the APP window.
The Zoom Countdown app would be the closest to the output I am looking for.
Do I need to generate a ZWT to join the meeting? I am looking to put this in the marketplace when it is completed
thanks in advance.
From this, I am going to create a quiz show experience.

@expertswho ,

Could you share the code snippet handling the API call and the response with us? This will help identify what may be happening.

To achieve this integration, we recommend building a Zoom App that implements Zoom App in-client OAuth. With the token you receive from the response (assuming it has the appropriate scopes), you’ll be able to access user account data and leverage Zoom App API calls to interact with the native Zoom client.

Here are the Zoom App APIs for in-client authorization:

promptAuthorize

You can use the prompt to authorize users and get an access token:

authorize

You can use the API to initiate the authorization flow:

onAuthorized

You can use the event to response or make tYou can use the event to respond or make the API call when the access token is received.

Also, here is the API you would use to generate a deep link for your Zoom App:

Generate an app deeplink

1 Like

OK, I get a callback code but it does no authorise.
Here is the code snippet

// Redirect to Zoom OAuth
router.get(‘/login’, (req, res) => {
const authUrl = ${process.env.ZOOM_AUTH_URL}?response_type=code&client_id=${process.env.CLIENT_ID}&redirect_uri=${process.env.REDIRECT_URI};
res.redirect(authUrl);
});

// OAuth Callback
router.get(‘/callback’, async (req, res) => {
const { code, state, error } = req.query;

if (error) {
  // Handle error case
  console.error('OAuth Error:', error);
  return res.status(400).send(`Error: ${error}`);
}
if (!code) {
  return res.status(400).send('Authorization code is missing.');
}
console.log('Authorization Code:', code);

try {
  const response = await axios.post('https://zoom.us/oauth/token', null, {
    params: {
      grant_type: 'authorization_code',
      code: code,
      redirect_uri: process.env.REDIRECT_URI,
    },
    headers: {
      Authorization: `Basic ${Buffer.from(
        `${process.env.CLIENT_ID}:${process.env.CLIENT_SECRET}`
      ).toString('base64')}`,
    },
  });
  console.log('Reached point Y');
  console.log(resonse);

It looks like you are trying to OAuth token. We have samples you can reference:

Had a binge on all the GIT ZOOM examples. I recommend that to everyone.
BTW some are old and do not work so well, or have out of date libraries.
It would be better for somebody to be responsible for keeping these up to date !!!

Can connect for all my use cases so far !!