# Invalid refresh token when run app

**URL:** <https://community.homey.app/t/invalid-refresh-token-when-run-app/139925>\
**Category:** Developers\
**Created:** [July 17, 2025, 3:51pm UTC](https://community.homey.app/t/invalid-refresh-token-when-run-app/139925 "2025-07-17T15:51:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GD91](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gd91/32/78099_2.png) [@GD91](https://community.homey.app/u/GD91)\
**Post date:** [July 17, 2025, 3:51pm UTC](https://community.homey.app/t/invalid-refresh-token-when-run-app/139925/1 "2025-07-17T15:51:34Z")

</div>

I’m working on a fork of Johan Bendz work about tuya devices.  
I can create the app without any issue.  
When I try to make it running, I got an error ‘Invalid refresh token’

How to solve this issue ?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/0/70f7420f075770d6b538196e09ed3448c91c5305.png)

---

<div class="post-metadata">

**Author:** ![GD91](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gd91/32/78099_2.png) [@GD91](https://community.homey.app/u/GD91)\
**Post date:** [July 18, 2025, 12:44pm UTC](https://community.homey.app/t/invalid-refresh-token-when-run-app/139925/2 "2025-07-18T12:44:45Z")

</div>

No idea ??

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [July 19, 2025, 3:06pm UTC](https://community.homey.app/t/invalid-refresh-token-when-run-app/139925/3 "2025-07-19T15:06:04Z")

</div>

@johan_bendz or contact Johan via github

Support  
Having an issue with this app? Contact the developer [here](https://github.com/JohanBendz/com.tuya.zigbee/issues).

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [July 19, 2025, 3:16pm UTC](https://community.homey.app/t/invalid-refresh-token-when-run-app/139925/4 "2025-07-19T15:16:33Z")

</div>

> [@JPe4619](#):
>
> @johan_bendz or contact Johan via github

This has nothing to do with the app itself, but with the Homey CLI tool.

---

<div class="post-metadata">

**Author:** ![GD91](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gd91/32/78099_2.png) [@GD91](https://community.homey.app/u/GD91)\
**Post date:** [July 19, 2025, 3:42pm UTC](https://community.homey.app/t/invalid-refresh-token-when-run-app/139925/5 "2025-07-19T15:42:11Z")

</div>

I, finally, find the origin of this issue !  
I forgot to login to homey !!  
Before typing ‘Homey app run’  
I should have typed ‘Homey login’  
That’s my bad !!

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [August 18, 2026, 4:43pm UTC](https://community.homey.app/t/invalid-refresh-token-when-run-app/139925/6 "2026-08-18T16:43:18Z")

</div>

Archived on August 18, 2026, 4:43pm UTC


