Skip to content

Commit 3558869

Browse files
authored
Updated dropbox config example (#727)
1 parent 78a3a49 commit 3558869

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/config-examples/dropbox.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ Please note:
66

77
* Dropbox does not provide a OIDC discovery endpoint, so `serviceConfiguration` is used instead.
88
* Dropbox OAuth requires a [client secret](#note-about-client-secrets).
9-
* Dropbox OAuth does not allow non-https redirect URLs, so you'll need to use a [Universal Link on iOS](https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html) or write a HTTPS endpoint.
10-
* Dropbox OAuth does not provide refresh tokens or a revoke endpoint.
9+
* Dropbox access tokens are short lived and will expire after a short period of time. To update your access token a separate call needs to be made to [/oauth2/token](https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token) to obtain a new access token.
1110

1211
```js
1312
const config = {
1413
clientId: 'your-client-id-generated-by-dropbox',
1514
clientSecret: 'your-client-secret-generated-by-dropbox',
16-
redirectUrl: 'https://native-redirect-endpoint/oauth/dropbox',
15+
redirectUrl: 'your.app.bundle.id://oauth',
1716
scopes: [],
1817
serviceConfiguration: {
1918
authorizationEndpoint: 'https://www.dropbox.com/oauth2/authorize',
2019
tokenEndpoint: `https://www.dropbox.com/oauth2/token`,
2120
},
22-
useNonce: false,
23-
usePKCE: false,
21+
additionalParameters: {
22+
token_access_type: 'offline',
23+
},
2424
};
2525

2626
// Log in to get an authentication token

0 commit comments

Comments
 (0)