Announcements
Do you have an idea for Dropbox Paper? Share it with us here!

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

Re: clearStoredAccessTokens

Dropboxer

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

DropboxOAuthManager.sharedOAuthManager.clearStoredAccessTokens()

Hope this helps! 

View solution in original post

Reply
Loading...
2 Replies

Re: clearStoredAccessTokens

Dropboxer

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

DropboxOAuthManager.sharedOAuthManager.clearStoredAccessTokens()

Hope this helps! 

View solution in original post

Reply
Loading...

Re: clearStoredAccessTokens

Helpful | Level 6

Thanks!

Reply
Loading...
API Support

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about API Support.

Or, search our Help Center for even more.

Who's talking
Top contributors to this post