# 🎉 Refresh tokens in node-red-node-dropbox (Now published as v2.0.0)

**URL:** <https://discourse.nodered.org/t/refresh-tokens-in-node-red-node-dropbox-now-published-as-v2-0-0/65610>\
**Category:** Feature Requests\
**Created:** [25 July 2022 21:05 UTC](https://discourse.nodered.org/t/refresh-tokens-in-node-red-node-dropbox-now-published-as-v2-0-0/65610 "2022-07-25T21:05:11Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [30 July 2022 21:41 UTC](https://discourse.nodered.org/t/refresh-tokens-in-node-red-node-dropbox-now-published-as-v2-0-0/65610/15 "2022-07-30T21:41:44Z")

</div>

> [@Paul-Reed](#):
>
> localhost didn't work for me either

Ah yes, now I remember.  
My last proposal above to have the node always to use localhost, was pure nonsense...

As @Frida already experienced, the hostname in the dropbox redirect\_uri must match the hostname used to access the flow editor.

1. If you want to use _ **localhost** _ in your redirect\_uri, then you need to use the browser that is installed on that host. Because the browser installed e.g. on a raspberry, can access local resources on that same raspberry via localhost.
2. But normally if you access your flow editor via `https://my_rpi_name:1880/some_path`, then the redirect uri should be `https://my_rpi_name:1880/dropbox /authenticate`

Am I correct that there is only a problem for Node-RED systems that fulfill the following 2 conditions:

1. The system is **not** accessible via localhost, because there is no browser installed on that host.
2. And SSL is _ **not** _ enabled (via the Node-RED settings.js file.

Because dropbox requires https, unless you use localhost.

Not sure if there is anything I could do about that, to be honest...

---

_[View the full topic](https://discourse.nodered.org/t/refresh-tokens-in-node-red-node-dropbox-now-published-as-v2-0-0/65610)._
