Electron Mac SDK auth error, always return 5

node 8.15.1
electron 2.0.18

i cloned code here https://github.com/zoom/zoom-macsdk-electron
and get app key & secret here https://marketplace.zoom.us/docs/sdk/native-sdks/preface/sdk-keys-secrets
i tried many times but whatever i typed in the auth code will return 5
AUTHRET_UNKNOWN:5,///< Auth Unknown error

function sdkauthCB(status){
console.log(‘sdkauthCB’, status)
if (ZOOMSDKMOD.ZOOMAUTHMOD.ZoomAuthResult.AUTHRET_SUCCESS == status){
var opts = {
ostype:ZOOMSDKMOD.ZOOM_TYPE_OS_TYPE.MAC_OS,
meetingstatuscb:meetingstatuscb,
meetinguserjoincb:meetinguserjoincb,
meetinguserleftcb:meetinguserleftcb,
meetinghostchangecb:meetinghostchangecb,
}

=> sdkauthCB 5
=> sdkauthCB 5

Have you ever set the web domain to “https://www.zoom.us”? If not, you can do it in main_mac.js.

1 Like

it works! thank you!

where to set this options

var ZOOMSDKMOD = require("./lib/zoom_sdk.js")
var initoptions={
path:’’,
threadsafemode:0,
webdomain:“https://www.zoom.us”,
ostype:ZOOMSDKMOD.ZOOM_TYPE_OS_TYPE.MAC_OS,
}
const zoomsdk = ZOOMSDKMOD.ZoomSDK.getInstance(initoptions)

still always get status:5

Hi sloppy,
Thanks for using Zoom SDK. The error code 5 that you are getting means “Invalid Parameter”, please double check the parameter you are passing and refer to our demo app: https://github.com/zoom/zoom-macsdk-electron/blob/master/demo/main.js#L370

Thanks!

so many thanks,it works.