cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Tell us what you want to see on the Community here!
Close

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

No Refresh token is returned

Highlighted

No Refresh token is returned

Explorer | Level 4

Hey,

 

I'm trying to figure out how the refresh token oauth2 process is working.

When I navigate to

https://www.dropbox.com/oauth2/authorize?client_id=<client_id>&token_access_type=offline&response_type=code

and grant premission I only get an oauth2 code but no refresh token. What am I doing wrong?

Do I have to enable something in the app center?

1 Accepted Solution

Accepted Solutions
Highlighted

Re: No Refresh token is returned

Dropboxer

When you swap that code for an access token(https://api.dropbox.com/oauth2/token), the resulting payload will contain an access_token and a refresh_token, which can be stored and used to issue a new access token later.

View solution in original post

3 Replies 3
Highlighted

Re: No Refresh token is returned

Dropboxer

Is this a newly created scoped app or an app that you're migrating? The OAuth Guide or blog post, Migrating App Permissions and Access Tokens, might be useful resources here.

In your app's settings there is an OAuth 2 section. Is the "Access token expiration" set to "Short-lived"? 

 

 

Highlighted

Re: No Refresh token is returned

Explorer | Level 4

Its a new scoped app and "Access token expiration" is set to "Short-lived".

Highlighted

Re: No Refresh token is returned

Dropboxer

When you swap that code for an access token(https://api.dropbox.com/oauth2/token), the resulting payload will contain an access_token and a refresh_token, which can be stored and used to issue a new access token later.

View solution in original post

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?