# Logout with electron js + web auth doesnt works

**URL:** <https://community.auth0.com/t/logout-with-electron-js-web-auth-doesnt-works/108849>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [June 8, 2023, 9:12am UTC](https://community.auth0.com/t/logout-with-electron-js-web-auth-doesnt-works/108849 "2023-06-08T09:12:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amiralam](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/amiralam/32/47910_2.png) [@amiralam](https://community.auth0.com/u/amiralam)\
**Post date:** [June 8, 2023, 9:12am UTC](https://community.auth0.com/t/logout-with-electron-js-web-auth-doesnt-works/108849/1 "2023-06-08T09:12:29Z")

</div>

I’m using electron js with auth0 for the login process. When the user clicks the login button, I create the login url and open it in his web browser. After he logs in, the browser then reroutes to the app.

Now, when a user selects logout, the refresh token that was previously saved in Keytar is deleted. however, it is not removed from the browser session or storage. Due to this, the browser gets redirected when a user clicks the login button a second time because the browser already has the user’s credentials, and the browser then redirects back to the app. It is not a true logout, therefore.

I attempted to revoke the refresh token, but the api responded with 200 OK, allowing me to continue using the refresh token.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 21, 2023, 2:26pm UTC](https://community.auth0.com/t/logout-with-electron-js-web-auth-doesnt-works/108849/3 "2023-06-21T14:26:36Z")

</div>

Hi @amiralam,

Are you hitting the `/logout` endpoint to terminate the Auth0 session?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [July 20, 2023, 3:34pm UTC](https://community.auth0.com/t/logout-with-electron-js-web-auth-doesnt-works/108849/4 "2023-07-20T15:34:33Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
