# How to change Lease time HOMEY\_BEARER\_TOKEN

**URL:** <https://community.homey.app/t/how-to-change-lease-time-homey-bearer-token/133371>\
**Category:** Questions & Help\
**Tags:** homey-pro\
**Created:** [March 24, 2025, 9:38am UTC](https://community.homey.app/t/how-to-change-lease-time-homey-bearer-token/133371 "2025-03-24T09:38:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Remco\_Schuringa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/remco_schuringa/32/120735_2.png) [@Remco\_Schuringa](https://community.homey.app/u/Remco_Schuringa)\
**Post date:** [March 24, 2025, 9:38am UTC](https://community.homey.app/t/how-to-change-lease-time-homey-bearer-token/133371/1 "2025-03-24T09:38:08Z")

</div>

I have a script that collects data every 3 seconds. I have the HOMEY\_BEARER\_TOKEN hard coded in the script. But the lease time of the HOMEY\_BEARER\_TOKEN is approx. 1 week. Can I extent that to a month or longer?  
Or is there a way to update it automatically when it is expired?
