# Logout stateless

**URL:** <https://community.auth0.com/t/logout-stateless/8563>\
**Category:** Get Help\
**Tags:** logout, stateless\
**Created:** [October 24, 2017, 4:36pm UTC](https://community.auth0.com/t/logout-stateless/8563 "2017-10-24T16:36:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsarenkotxt](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@tsarenkotxt](https://community.auth0.com/u/tsarenkotxt)\
**Post date:** [October 24, 2017, 4:36pm UTC](https://community.auth0.com/t/logout-stateless/8563/1 "2017-10-24T16:36:34Z")

</div>

Hi we have a stateless application and we authorize the user using the jwt token, how to force the logout, without saving tokens that are already invalid after logout?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [November 30, 2017, 11:50pm UTC](https://community.auth0.com/t/logout-stateless/8563/2 "2017-11-30T23:50:45Z")

</div>

The information provided is not sufficient to provide a definitive answer, but if the initial end-user authentication process performed by the client application resulted in an authentication session being created at the identity provider (in this case the Auth0 service) then, if you haven’t done so already, you should check the reference documentation about [logout](https://auth0.com/docs/logout).

---

<div class="post-metadata">

**Author:** ![priya.sharma](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/priya.sharma/32/8721_2.png) [@priya.sharma](https://community.auth0.com/u/priya.sharma)\
**Post date:** [December 18, 2017, 2:16pm UTC](https://community.auth0.com/t/logout-stateless/8563/3 "2017-12-18T14:16:07Z")

</div>

Hi @jmangelo,  
I would like to add up to it, I am in a similar situation where we are using Auth0 access tokens to authenticate the user for accessing our API.  
My question is whether it is necessary to end the session at Auth0 too, having done that on the client and server side already.  
As Auth0 doesn’t expire the token on logout, then whats the purpose of log out, if the access token is still valid?  
PS - I have read the document already.  
We are not using Lock instead, we are using our custom pages.

---

<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:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/logout-stateless/8563/4 "2018-03-02T05:57:06Z")

</div>


