# How to reduce the Access Token's Expiration Time from Admin Auth API?

**URL:** https://discourse.nodered.org/t/how-to-reduce-the-access-tokens-expiration-time-from-admin-auth-api/71103
**Category:** General
**Tags:** security
**Created:** [23 November 2022 11:39 UTC](https://discourse.nodered.org/t/how-to-reduce-the-access-tokens-expiration-time-from-admin-auth-api/71103 "2022-11-23T11:39:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Shan](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shan](https://discourse.nodered.org/u/Shan)
#### Post date: [23 November 2022 11:39 UTC](https://discourse.nodered.org/t/how-to-reduce-the-access-tokens-expiration-time-from-admin-auth-api/71103/1 "2022-11-23T11:39:15Z")

</div>

Based on the HTTP [POST /auth/token : Node-RED](https://nodered.org/docs/api/admin/methods/post/auth/token/) documentation a token is generated with the Expiration Duration of 604800, but I wish to reduce it down to 3600 seconds but I do not see any parameter that can be configured in the API. Is there some Settings in `settings.js` file that I can control?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [22 January 2023 11:40 UTC](https://discourse.nodered.org/t/how-to-reduce-the-access-tokens-expiration-time-from-admin-auth-api/71103/2 "2023-01-22T11:40:00Z")

</div>

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