# 🎉 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:** 11

<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:** [26 July 2022 21:27 UTC](https://discourse.nodered.org/t/refresh-tokens-in-node-red-node-dropbox-now-published-as-v2-0-0/65610/11 "2022-07-26T21:27:23Z")

</div>

@dceejay: indeed my first reaction was also to keep the old access token somehow on the screen, so users could keep on using their old access token. Or that you have a dropdown on the screen where you can select following options:

- _"access token"_: which is by default selected for nodes that have an old access token, so people can keep on using their old token (i.e. not breaking existing flows).
- _"refresh token"_: whick is by default selected for new nodes.

But not sure if it would be a good decision:

- I think it will be confusing, especially since refresh tokens also result in access tokens. But those access tokens are generated under the cover and have nothing to do with the access token field on the config screen.
- Seems a bit wrong to me, to do extra efforts to offer users a less-secure solution. Although Dropbox also allows users to keep on using their old tokens, without expiration. Although that might end some day.

So I am not sure about what would be the best solution.  
Personally I like to keep the config screen simple (with only a refresh token field), because I think that most users get nuts of tokens and all related security stuff...

> [@Frida](#):
>
> the dropbox node became a small square, but it worked.

Heuh, do I see this correctly in your screenshot:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/b/4bd7afc76132168485dcbbb2c0c9b21004829c11.png)

The image that I had share above (to explain how this mechanism) works, appears as an icon in your node (instead of the [dropbox.png](https://github.com/bartbutenaers/node-red-web-nodes/tree/master/dropbox/icons) file). This is the moment that I need to buy new glasses or visit a psychiatrists...

> [@Frida](#):
>
> First I had to allow popup in safari

Yes I had the same problem in Chrome last week, so I had added this to the config node screen:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/7/f79535de778d963f2149ca83748ceba934cdf8e3.png)

But apparently that is not clear enough. If anybody has a better proposal, please let me know.

> [@Frida](#):
>
> To get it working on my raspi, I had to open the browser in the raspi because only local is allowed to get my Refresh Token.

I wasn't aware that only local was allowed. Will need to to find some time in the weekend to try this myself. Thanks for testing this!!!!

Found some other issue. Tonight I had a _"connection lost"_ on my flow editor, while the config screen was open. This resulted somehow in an alert box with the text _"undefined"_, and the redirect url was empty:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/d/5d220b5b4f95923c66fe1d7b1e4ffb46ac9bdf96.png)

Will need to have a look at that also...

---

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