Logging out in electron Zoom SDK


#1

Hi!

 

I have a problem with logging out in Electron Zoom SDK. 

I can log in fine and then start a meeting. However, if I need to log out and then log in as another user, I get the error

ZOOMSDKMOD.ZoomSDKError.SDKERR_WRONG_USAGE.

 

I get the same error If I try to log in without logging out first. I surmise from this that the logout functionality is failing, somehow. 

What do I need to do to do this correctly?

 

Here’s my logout code (in the main.js file of the electron demo):

 

zoomauth.Logout();

login(credentialData.userName,credentialData.password);

 

note that if I’ve gotten here, it means that I had successfully initialized the SDK and logged in  with a different user before. I only get here if I try to use different credentials the second time.

 

Thanks,

 

Ilan


#2

you need to waiting the logout callback. after that, you can login another account.

zoom_auth.js

functiononLogOutResult() {

if (null!=_logoutcb)

_logoutcb()

}

thanks.