Web SDK Integration C# .NET - Token Invalid - Token Start - "Not support start meeting via tokens"

Description
I have integrated the Web SDK into my app and I have a conditional rendering to avoid init() prior to all the data I need being in place. I am sending in all of the specified properties for the ZoomMtg.join(), but I am getting an error saying that starting a meeting via tokens is not supported despite the docs showing the zak token being required to start a meeting using the Web SDK.

Browser Console Error
“Not support start meeting via tokens”

Which Web Meeting SDK version?
@zoomus/websdk”: “^2.3.5”,

Meeting SDK Code Snippets
import React, { useState, useEffect } from ‘react’;

import { ZoomMtg } from ‘@zoomus/websdk’;

import debug from ‘sabio-debug’;

import { useLocation } from ‘react-router-dom’;

const _logger = debug.extend(‘Zoom’);

function ZoomStream() {

const [meeting, setMeeting] = useState({

    sdkKey: 'SDK KEY',

    signature: '', 

    meetingNumber: '',

    passWord: '',

    userName: '',

    zak: null,

}); -- signature, meetingNumber, passWord,j userName, and zak are populated from location state after successful creation of a meeting in a different component --

const [zoomReady, setZoomReady] = useState(false);

const { state } = useLocation();

useEffect(() => {

    if (state?.type === 'ZOOM_DATA' && state.payload) {

        setMeeting((prevState) => {

            const md = { ...prevState };

            md.signature = state.payload.signature;

            md.meetingNumber = state.payload.meetingNumber;

            md.passWord = state.payload.passWord;

            md.userName = state.payload.userName;

            md.zak = state.payload.zak || null;

            return md;

        });

        setZoomReady(true);

    }

}, [state]);

if (zoomReady) {

    ZoomMtg.preLoadWasm();

    ZoomMtg.prepareWebSDK();

    ZoomMtg.i18n.load('en-US');

    ZoomMtg.i18n.reload('en-US');

    ZoomMtg.init({

        leaveUrl: 'http://localhost:3000/',

        success: (success) => {

            _logger(success);

            ZoomMtg.join({

                sdkKey: meeting.sdkKey,

                signature: meeting.signature,

                meetingNumber: meeting.meetingNumber,

                passWord: meeting.passWord,

                userName: meeting.userName,

                zak: meeting.zak,

                success: (success) => {

                    _logger(success);

                },

                error: (error) => {

                    _logger(error);

                },

            });

        },

        error: (error) => {

            _logger(error);

        },

    });

}

return <></>;

}

export default ZoomStream;

Device (please complete the following information):

  • Device: [Alienware Desktop ]
  • OS: [Windows 11]
  • Browser: [Chrome]
  • Browser Version [101.0.4951.41]

Hi, @spmoran13,

Welcome to the Developer Forum. We offer support documentation you can reference to start a meeting using the SDK. Can you double-check that all of the required properties are included in the join function:

Start Meeting Documentation Link

@spmoran13 I was able fix this issue by adding “type=zak” in the URL used to get zak token of a User.
like: https://api.zoom.us/v2/users/{userId}/token/?type=zak

Check this thread

Hello Donte,

I have verified all required propertie are included in the join function and the error persists.

@spmoran13,

Would you be able to share a screen recording reproducing the behavior? I am not able to reproduce that behavior with the Web SDK. The video would help identify what may be happening.