# Expire access token when Logout

**URL:** <https://community.auth0.com/t/expire-access-token-when-logout/61266>\
**Category:** Get Help\
**Tags:** access\_token, logout, auth0\
**Created:** [April 17, 2021, 6:59am UTC](https://community.auth0.com/t/expire-access-token-when-logout/61266 "2021-04-17T06:59:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![techtic.neel](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/techtic.neel/32/26158_2.png) [@techtic.neel](https://community.auth0.com/u/techtic.neel)\
**Post date:** [April 17, 2021, 6:59am UTC](https://community.auth0.com/t/expire-access-token-when-logout/61266/1 "2021-04-17T06:59:00Z")

</div>

Hey all,  
I want to expire my access\_token when i click logout.  
We use the access token for api in jwt.  
Currently, after logout still i can access the dashboard with access\_token .

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [April 19, 2021, 12:04pm UTC](https://community.auth0.com/t/expire-access-token-when-logout/61266/3 "2021-04-19T12:04:34Z")

</div>

Hi @techtic.neel,

In order to help with your solution, which SDK are you using?

Unfortunately, JWTs can’t be invalidated because they are meant to be self-contained instead of requiring a check with Auth0.

You can configure a short lifetime for your access tokens in your API settings:

 ![Screen Shot 2021-04-19 at 8.04.14 AM](https://global.discourse-cdn.com/auth0/original/3X/8/1/81880519eeeb4ad84fdcc220b7e4316967a18bc5.png)

Related topic: [Invalidating an access token when user logs out](https://community.auth0.com/t/invalidating-an-access-token-when-user-logs-out/48365)

---

<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:** [May 4, 2021, 2:23pm UTC](https://community.auth0.com/t/expire-access-token-when-logout/61266/5 "2021-05-04T14:23:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [July 19, 2024, 12:50pm UTC](https://community.auth0.com/t/expire-access-token-when-logout/61266/7 "2024-07-19T12:50:34Z")

</div>

Hey there, everyone!

I’m excited to inform you about our [next Ask Me Anything session](https://community.auth0.com/t/discover-the-future-of-customer-identity-cloud-cic-powered-by-auth0-at-our-ask-me-anything-highlights-and-upcoming-features/138388) in the Forum on Tuesday, July 30, with the Product Management team. If you have questions about upcoming features like [FGA](https://auth0.com/fine-grained-authorization), [Manage Sessions in Actions](https://auth0.com/docs/manage-users/sessions/manage-sessions-actions), or [SCIM](https://simplecloud.info/). Submit your questions now, and our esteemed product experts will provide written answers on July 30. I can’t wait to see you there!

[Learn more here!](https://community.auth0.com/t/discover-the-future-of-customer-identity-cloud-cic-powered-by-auth0-at-our-ask-me-anything-highlights-and-upcoming-features/138388/1)
