We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
RJKinsman
7 years agoHelpful | Level 6
clearStoredAccessTokens
Hello, I'm still new to Swift so this may be a dumb question, but here goes...
I want to invoke the clearStoredAccessTokens() function of the DropboxOAuthManager class. I coded this...
DropboxOAuthManager.clearStoredAccessTokens()
... and the compiler is giving me this...
Instance member 'clearStoredAccessTokens' cannot be used on type 'DropboxOAuthManager'; did you mean to use a value of this type instead?
How do I code this?
You can use that method on the shared instance like this:
DropboxOAuthManager.sharedOAuthManager.clearStoredAccessTokens()
Hope this helps!
2 Replies
- Greg-DB7 years ago
Dropbox Community Moderator
You can use that method on the shared instance like this:
DropboxOAuthManager.sharedOAuthManager.clearStoredAccessTokens()
Hope this helps!
- RJKinsman7 years agoHelpful | Level 6
Thanks!
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!