Skip to content

Commit 9012c10

Browse files
committed
README updates for new auth flows.
1 parent d455def commit 9012c10

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ Authentication with TJDropbox is pretty flexible. The simplest way to do it woul
1414
- (void)authenticate
1515
{
1616
[TJDropboxAuthenticator authenticateWithClientIdentifier:/*Dropbox client identifier*/
17-
bypassingNativeAuth:NO
18-
completion:^(NSString *accessToken) {
19-
if (accessToken) {
20-
// Auth succeeded, store token.
17+
options:/*Options for auth*/
18+
completion:^(TJDropboxCredential *credential) {
19+
if (credential) {
20+
// Auth succeeded, store credential.
2121
} else {
2222
// Auth did not succeed.
2323
}
@@ -27,14 +27,14 @@ Authentication with TJDropbox is pretty flexible. The simplest way to do it woul
2727

2828
Be sure to call `+tryHandleAuthenticationCallbackWithURL:` from your app delegate's `-application:openURL:options:` method for this to work. `TJDropboxAuthenticator` attempts auth using the following methods in order of preference.
2929

30-
1. The Dropbox app (bypassed if `bypassingNativeAuth` is `NO`)
30+
1. The Dropbox app (bypassed if `bypassNativeAuth` is `YES` in `options`)
3131
2. `ASWebAuthenticationSession` in iOS 12+.
3232
3. `SFAuthenticationSession` in iOS 11+.
3333
4. Auth in Safari.app
3434

3535
That being said, you can also authenticate manually using the utility methods TJDropbox provides. Advanced auth is detailed [here](Docs/advanced-auth.md).
3636

37-
Just as with migrating a v1 token to v2, TJDropbox doesn't store the credentials, that's up to you.
37+
TJDropbox doesn't store the credentials, that's up to you.
3838

3939
## Provided Request Types
4040

0 commit comments

Comments
 (0)