# How do I properly handle session timeout in PKCE using the Vue Auth0 SDK?

**URL:** <https://community.auth0.com/t/how-do-i-properly-handle-session-timeout-in-pkce-using-the-vue-auth0-sdk/89861>\
**Category:** Get Help\
**Tags:** pkce, token-expiration, expire\
**Created:** [September 1, 2022, 1:45pm UTC](https://community.auth0.com/t/how-do-i-properly-handle-session-timeout-in-pkce-using-the-vue-auth0-sdk/89861 "2022-09-01T13:45:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgleason](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jgleason/32/25904_2.png) [@jgleason](https://community.auth0.com/u/jgleason)\
**Post date:** [September 1, 2022, 1:45pm UTC](https://community.auth0.com/t/how-do-i-properly-handle-session-timeout-in-pkce-using-the-vue-auth0-sdk/89861/1 "2022-09-01T13:45:41Z")

</div>

Hey everyone,

Business is asking to make sure people have to go through the auth flow every n hours. My login config looks like this…

```auto
{
      domain: "...",
      client_id: "...",
      redirect_uri: window.location.origin,
      scope: "...",
      useRefreshTokens: true,
}

```

How do I ensure the user is required to at least go through the login flow after being idle (after token issued?) for n hours?

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [September 1, 2022, 8:00pm UTC](https://community.auth0.com/t/how-do-i-properly-handle-session-timeout-in-pkce-using-the-vue-auth0-sdk/89861/3 "2022-09-01T20:00:32Z")

</div>

Hi @jgleason ,

If I understand correctly, you want to have the users re-login after being idle for n hours. This can be configured under the Tenant Setting → Advanced → Login Session Management. [This](https://auth0.com/docs/manage-users/sessions/configure-session-lifetime-settings) doc has the details.

Also, we have a [FAQ](https://community.auth0.com/t/why-users-remain-login-after-the-inactivity-timeout/87161) that explains the opposite situation that users remain logged in after session times out. I hope it could be helpful when you configure your tenant.

Thanks!

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [February 2, 2023, 8:25pm UTC](https://community.auth0.com/t/how-do-i-properly-handle-session-timeout-in-pkce-using-the-vue-auth0-sdk/89861/4 "2023-02-02T20:25:29Z")

</div>


