# Don't keep session in browser while using device flow authentication

**URL:** <https://community.auth0.com/t/dont-keep-session-in-browser-while-using-device-flow-authentication/85474>\
**Category:** Get Help\
**Tags:** device-flow, auth0\
**Created:** [June 20, 2022, 2:16pm UTC](https://community.auth0.com/t/dont-keep-session-in-browser-while-using-device-flow-authentication/85474 "2022-06-20T14:16:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![morenol](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/morenol/32/26690_2.png) [@morenol](https://community.auth0.com/u/morenol)\
**Post date:** [June 20, 2022, 2:16pm UTC](https://community.auth0.com/t/dont-keep-session-in-browser-while-using-device-flow-authentication/85474/1 "2022-06-20T14:16:18Z")

</div>

I am using the device-flow to authenticate a CLI. Everything works fine on first try. But if I try to authenticate again, when I open the browser it doesn’t request me for inserting my credentials. It just keeps the credentials from the previous session.

Is there a way to add a timeout for that session so I can use a different email and password?

Thanks!

---

<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 27, 2022, 5:31pm UTC](https://community.auth0.com/t/dont-keep-session-in-browser-while-using-device-flow-authentication/85474/3 "2022-06-27T17:31:55Z")

</div>

Hi @morenol,

Welcome to the Auth0 Community!

You can configure session settings like this:

> **[Configure Session Lifetime Settings](https://auth0.com/docs/manage-users/sessions/configure-session-lifetime-settings)**
>
> Describes how to configure session lengths and limits for a tenant using the Auth0 Dashboard or the Management API.

You could also force the login prompt if you don’t care about the session expiring.

> **[Force Reauthentication in OIDC](https://auth0.com/docs/authenticate/login/max-age-reauthentication)**
>
> Describes how to use the max\_age authentication request parameter as a mechanism whereby relying parties can positively confirm that re-authentication has taken place within a given time interval.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 21, 2022, 5:15pm UTC](https://community.auth0.com/t/dont-keep-session-in-browser-while-using-device-flow-authentication/85474/4 "2022-12-21T17:15:25Z")

</div>


