cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to clearStoredAccessToken for tokens that fail migration?

How to clearStoredAccessToken for tokens that fail migration?

rajul_texas
Explorer | Level 3
Go to solution

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

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
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.)

View solution in original post

1 Reply 1

Greg-DB
Dropbox Staff
Go to solution
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.)
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?