Discuss Dropbox Developer & API
I'm having trouble with adding the force_reapprove to my code when using the sdk js package. When a user is already logged in I don't want it to skip the process of app consent just in case my user has more than one dropbox account they want to use with my app.
The official Dropbox JavaScript SDK doesn't have the 'force_reapprove' option built in, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
You should be able to add that to the URL returned by getAuthenticationUrl though. Can you share what you have so far, and what specifically you're having trouble with?
The official Dropbox JavaScript SDK doesn't have the 'force_reapprove' option built in, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
You should be able to add that to the URL returned by getAuthenticationUrl though. Can you share what you have so far, and what specifically you're having trouble with?
I'm glad to hear you were able to get it working already.
For reference though, it's technically safer to parse the URL and set the parameter, instead of just adding it as a string. For instance, you could do something like:
var modifiedAuthUrl = new URL(authUrl);
modifiedAuthUrl.searchParams.set('force_reapprove', true);
modifiedAuthUrl = modifiedAuthUrl.href;
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
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!