One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
rajul_texas
8 years agoExplorer | Level 3
How to clearStoredAccessToken for tokens that fail migration?
I am using DBClientsManager::checkAndPerformV1TokenMigration to migrate myDropbox Objective-C API v1 access tokens toDropbox Objective-C API v2.
As a part of the error handling if a token fails to migrate, I am guessing I should be clearing the stored access token by calling DBOAuthManager::clearStoredAccessToken and prompt the user to acquire a new v2 access token.
However this method takes a tokenUid. Since these are v1 tokens I only have access to
DropboxUserID, AccessToken, AccessTokenSecret and StoredAppKey. How do I clear the access token from the Auth Manager or the Key Chain?
Thanks,
Rajul
- You don't need to clear old tokens that failed to migrate. There's no harm in having them stored. (The clearStoredAccessToken method would only clear tokens for the current SDK, not the old ones, anyway.)
- Greg-DB
Dropbox Staff
You don't need to clear old tokens that failed to migrate. There's no harm in having them stored. (The clearStoredAccessToken method would only clear tokens for the current SDK, not the old ones, anyway.)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 6 days ago
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 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!