We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
cfishere
4 years agoExplorer | Level 3
Non expiring token kept on changing
So i tried following this article about obtaining my perm app token. I did the exact steps. but it always gives me a different Token when i try to access the link https://www.dropboxforum.com/t5/Dro...
simatec1976
4 years agoExplorer | Level 3
I've come a long way now.
However, I'm hanging on refresh_token with PKCE.
How can I do a refresh with the VERIFICATION_CODE.
I didn't want to work with client_secret.
with client_secret the example looks like this:
curl https://api.dropbox.com/oauth2/token \
-d grant_type=refresh_token \
-d refresh_token=<REFRESH_TOKEN> \
-u <APP_KEY>:<APP_SECRET>
Is there also a way to refresh_token with the VERIFICATION_CODE instead of the client_secret?
I really don't want the client_secet in the Source code
tahsini
Dropbox Staff
4 years agoHey simatec1976
To use the /oauth2/token with a refresh token that was retrieved via the PKCE flow to get a new short-lived access token without using the app secret would look like this:
curl https://api.dropbox.com/oauth2/token \
-d refresh_token=<REFRESH_TOKEN> \
-d grant_type=refresh_token \
-d client_id=<APP_KEY>
About 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!