cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
If you’ve changed your email address, now's the perfect time to update it on your Dropbox account and we’re here to help! Learn more 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: 

Login authorisation APIV2

Login authorisation APIV2

bliss
Explorer | Level 3

I am usin this metod in-viewdidLoad to authorize loginf rom the login browser controller of dropbox.

 

 

 [DBClientsManager authorizeFromController:[UIApplication sharedApplication]
                                   controller:self
                                      openURL:^(NSURL *url)
     {
         [[UIApplication sharedApplication] openURL:url];
         
     }];

 

but after first time it is approved and when i cam again at the same screen again it appears the Dropbox browser login controller. How i can avoid this once it approve the authorization.

1 Reply 1

Greg-DB
Dropbox Staff
The app authorization flow will be started whenever you call authorizeFromController. To prevent that from happening repeatedly, you should check if the user is already authorized before calling it. You can use authorizedClient to check that, as shown here:

https://github.com/dropbox/dropbox-sdk-obj-c/blob/003d03898d77052f5958938363be0b98e9088618/Examples/...
Need more support?
Who's talking

Top contributors to this post

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