Skip to content

Commit

Permalink
Merge pull request #80 from boxtcarpel/master
Browse files Browse the repository at this point in the history
Improve the authentication readme documentation
  • Loading branch information
boxtcarpel committed Sep 24, 2015
2 parents 19f1093 + 7f7f920 commit b5214ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/Authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ BOXContentClient *contentClient = [BOXContentClient defaultClient];
Alternatively, if you prefer to present View Controllers on your own:
```objectivec
BOXContentClient *contentClient = [BOXContentClient defaultClient];
BoxAuthorizationViewController *boxAuthViewController = [[BoxAuthorizationViewController alloc]
initWithinitWithSDKClient:contentClient
completionBlock:^(BoxAuthorizationViewController *authorizationViewController, BOXUser *user, NSError *error) {
BOXAuthorizationViewController *boxAuthViewController = [[BOXAuthorizationViewController alloc]
initWithSDKClient:contentClient
completionBlock:^(BOXAuthorizationViewController *authorizationViewController, BOXUser *user, NSError *error) {
// BOXUser is returned if authentication was successful.
// Otherwise, error will contain the reason for failure (e.g. network connection)
// You should dismiss authorizationViewController here.
} cancelBlock:^(BoxAuthorizationViewController *authorizationViewController){
} cancelBlock:^(BOXAuthorizationViewController *authorizationViewController){
// User has canceled the login process.
// You should dismiss authorizationViewController here.
}];
Expand Down

0 comments on commit b5214ec

Please sign in to comment.