cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

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: 
Highlighted

clearStoredAccessTokens

Helpful | Level 6

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?

1 Accepted Solution

Accepted Solutions
Highlighted

Re: clearStoredAccessTokens

Dropboxer
Dropboxer

You can use that method on the shared instance like this:

DropboxOAuthManager.sharedOAuthManager.clearStoredAccessTokens()

Hope this helps! 

View solution in original post

2 Replies 2
Highlighted

Re: clearStoredAccessTokens

Dropboxer
Dropboxer

You can use that method on the shared instance like this:

DropboxOAuthManager.sharedOAuthManager.clearStoredAccessTokens()

Hope this helps! 

View solution in original post

Highlighted

Re: clearStoredAccessTokens

Helpful | Level 6

Thanks!

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?