# Token renew in node-red

**URL:** https://wazo-platform.discourse.group/t/token-renew-in-node-red/1108
**Category:** Development: API/Events
**Created:** [August 9, 2022, 8:49am UTC](https://wazo-platform.discourse.group/t/token-renew-in-node-red/1108 "2022-08-09T08:49:51Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![LaChagnasse](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/lachagnasse/32/564_2.png) [@LaChagnasse](https://wazo-platform.discourse.group/u/LaChagnasse)
#### Post date: [August 9, 2022, 8:49am UTC](https://wazo-platform.discourse.group/t/token-renew-in-node-red/1108/1 "2022-08-09T08:49:51Z")

</div>

Hi,

I’m playing with node-red and did the dashboard as you showed in node-red introduction, it’s nice and i can’t wait to play more with it but i have a little issue which is i can’t find how to renew the token automatically.

How do you do, do you have to use another node ? Or does it has to be passed in the payload ?

thank you

---

<div class="post-metadata">

### Author: ![quintana](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/quintana/32/916_2.png) [@quintana](https://wazo-platform.discourse.group/u/quintana)
#### Post date: [August 9, 2022, 12:25pm UTC](https://wazo-platform.discourse.group/t/token-renew-in-node-red/1108/2 "2022-08-09T12:25:38Z")

</div>

Hello,

The config node use the refresh token mecanism of wazo auth. You don’t need to do something.

---

<div class="post-metadata">

### Author: ![LaChagnasse](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/lachagnasse/32/564_2.png) [@LaChagnasse](https://wazo-platform.discourse.group/u/LaChagnasse)
#### Post date: [August 9, 2022, 12:26pm UTC](https://wazo-platform.discourse.group/t/token-renew-in-node-red/1108/3 "2022-08-09T12:26:58Z")

</div>

I must be missing something because the token expire and does not renew on my apps

---

<div class="post-metadata">

### Author: ![quintana](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/quintana/32/916_2.png) [@quintana](https://wazo-platform.discourse.group/u/quintana)
#### Post date: [August 9, 2022, 6:29pm UTC](https://wazo-platform.discourse.group/t/token-renew-in-node-red/1108/4 "2022-08-09T18:29:30Z")

</div>

How did you configure the node config? Normally you just need to add the url, a login and password, and when you save it, it gets the refresh token. After that the plugin are in charge to renew the token with the refresh token.

---

<div class="post-metadata">

### Author: ![LaChagnasse](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/lachagnasse/32/564_2.png) [@LaChagnasse](https://wazo-platform.discourse.group/u/LaChagnasse)
#### Post date: [August 10, 2022, 10:31am UTC](https://wazo-platform.discourse.group/t/token-renew-in-node-red/1108/5 "2022-08-10T10:31:12Z")

</div>

Nothing fancy, user + password and i do get a token. But it expires and doesn’t renew.

 ![image](https://global.discourse-cdn.com/free1/uploads/wazo_platform/original/1X/cd50b9a6351d7edc2075472614b7f6ee70628002.png)

I must re-enter user password and click on renew token for it to work, it’s currently expired if you need other screenshot

---

<div class="post-metadata">

### Author: ![quintana](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/quintana/32/916_2.png) [@quintana](https://wazo-platform.discourse.group/u/quintana)
#### Post date: [August 11, 2022, 12:22am UTC](https://wazo-platform.discourse.group/t/token-renew-in-node-red/1108/6 "2022-08-11T00:22:14Z")

</div>

Please can you provide me log from node red and log from wazo auth.  
What’s your version of node red, the plugin and wazo-platform.

---

<div class="post-metadata">

### Author: ![LaChagnasse](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/lachagnasse/32/564_2.png) [@LaChagnasse](https://wazo-platform.discourse.group/u/LaChagnasse)
#### Post date: [August 11, 2022, 8:42am UTC](https://wazo-platform.discourse.group/t/token-renew-in-node-red/1108/7 "2022-08-11T08:42:53Z")

</div>

Well i just learned how to get log from console in docker and in wazo auth i can see the token is refreshed so i must have an issue somewhere else.  
Sorry for your time, thank you for your help
