Hi,
In Dropbox API v2, can a user unlink an app from their account via the "Apps linked" section of their account security page?
Please let me know if have any solution.
When a user unlink an app then how can I get to know that?
Because if someone unlinks his dropbox account with my app then I have to remove his accounts information from my app database.
@ankon111 If/when a user unlinks an app from their account, any further API calls using an access token for that account and app will fail with a 401 error status. You can find more information about the different error cases in the documentation here:
https://www.dropbox.com/developers/documentation/http/documentation#error-handling
If you're using an official SDK, it will automatically convert the error response to the corresponding native exception.
You can check the specific error in your app's code and handle it accordingly, e.g., to remove the account, or prompt them to relink if they wish to continue using the app, etc.