Forum Discussion

Okgo's avatar
Okgo
New member | Level 2
3 years ago

I wanna know how to stop refresh the Generated access token

I'm using the tutorial code but a few hours later

Generated access token does not work

so i changed token everytime when i use it.

 

i wanna know how to fix it

1 Reply

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    3 years ago

    Okgo wrote:

    I'm using the tutorial code but a few hours later

    ...


    Hi Okgo,

    More precise the access token expires in 4 hours.


    Okgo wrote:

    ...

    i wanna know how to fix it


    You have to use refresh token in client object construction instead of access token. Unfortunately, you can not directly get refresh token as you can for access token (not yet, at least). Despite, you can get refresh token with few simple steps in terminal. For more info take a look here. 😉

    Hope this helps.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!