# Logging out in electron Zoom SDK

**URL:** <https://devforum.zoom.us/t/logging-out-in-electron-zoom-sdk/835>\
**Category:** Windows\
**Created:** [December 22, 2017, 9:59am UTC](https://devforum.zoom.us/t/logging-out-in-electron-zoom-sdk/835 "2017-12-22T09:59:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Meir\_Schreiber](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/meir_schreiber/32/9638_2.png) [@Meir\_Schreiber](https://devforum.zoom.us/u/Meir_Schreiber)\
**Post date:** [December 22, 2017, 9:59am UTC](https://devforum.zoom.us/t/logging-out-in-electron-zoom-sdk/835/1 "2017-12-22T09:59:57Z")

</div>

Hi!

&nbsp;

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

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.

&nbsp;

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.&nbsp;

What do I need to do to do this correctly?

&nbsp;

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

&nbsp;

zoomauth.Logout();

login(credentialData.userName,credentialData.password);

&nbsp;

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

&nbsp;

Thanks,

&nbsp;

Ilan

---

<div class="post-metadata">

**Author:** ![dats\_liao](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dats_liao/32/464_2.png) [@dats\_liao](https://devforum.zoom.us/u/dats_liao)\
**Post date:** [December 25, 2017, 1:06am UTC](https://devforum.zoom.us/t/logging-out-in-electron-zoom-sdk/835/2 "2017-12-25T01:06:57Z")

</div>

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

zoom\_auth.js

functiononLogOutResult() {

if (null!=\_logoutcb)

\_logoutcb()

}

thanks.

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 5:22pm UTC](https://devforum.zoom.us/t/logging-out-in-electron-zoom-sdk/835/3 "2020-08-21T17:22:33Z")

</div>

Closed on August 21, 2020, 5:22pm UTC


