We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
rajul_texas
9 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.)
1 Reply
- Greg-DB9 years ago
Dropbox Community Moderator
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.
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!