# Correct way to logout after success OAuth

**URL:** <https://devforum.zoom.us/t/correct-way-to-logout-after-success-oauth/68184>\
**Category:** macOS\
**Created:** [April 27, 2022, 8:25am UTC](https://devforum.zoom.us/t/correct-way-to-logout-after-success-oauth/68184 "2022-04-27T08:25:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [April 27, 2022, 8:25am UTC](https://devforum.zoom.us/t/correct-way-to-logout-after-success-oauth/68184/1 "2022-04-27T08:25:14Z")

</div>

I have integrated Zoom OAuth in the MacOS app (with Zoom Meeting SDK).

Where the app is redirected the user to the browser and the browser is redirected the user back to the application if the auth is success.

But I have a question about logout: what is the correct way to logout?

There are two endpoints:

1. POST: [https://zoom.us/oauth/revoke](https://zoom.us/oauth/revoke)  
_Account in browser is still active after this request. And user isn’t showed Zoom’s OAuth ways page (Google, FB, etc), just signing in automatically._

2. DELETE: [https://api.zoom.us/v2/users/{userId}/token](https://api.zoom.us/v2/users/%7BuserId%7D/token)  
_User is showed Zoom’s OAuth ways page (Google, FB, etc) even after reauth ( **and that’s what I want** ), BUT this request initiate logout from ALL clients where I was logged in._

Maybe there is one more way to logout?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [April 27, 2022, 9:17pm UTC](https://devforum.zoom.us/t/correct-way-to-logout-after-success-oauth/68184/2 "2022-04-27T21:17:59Z")

</div>

Hi @anton.yereshchenko,

The SDK does not have a concept of being logged in anymore since a ZAK is provided for each meeting join/start, so this question is probably better suited for the #api-and-webhooks category. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [April 27, 2022, 9:18pm UTC](https://devforum.zoom.us/t/correct-way-to-logout-after-success-oauth/68184/3 "2022-04-27T21:18:03Z")

</div>

Closed on April 27, 2022, 9:18pm UTC


