File tree 3 files changed +5
-2
lines changed
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,9 @@ export class DropboxAuth {
41
41
* @param redirectUri A URL to redirect the user to after authenticating.
42
42
* This must be added to your app through the admin interface.
43
43
* @param code An OAuth2 code.
44
+ * @returns {Object} An object containing the token and related info (if applicable)
44
45
*/
45
- getAccessTokenFromCode(redirectUri: string, code: string): Promise<DropboxResponse<string >>;
46
+ getAccessTokenFromCode(redirectUri: string, code: string): Promise<DropboxResponse<object >>;
46
47
47
48
/**
48
49
* Get a URL that can be used to authenticate users for the Dropbox API.
Original file line number Diff line number Diff line change @@ -234,6 +234,7 @@ export default class DropboxAuth {
234
234
* @arg {String} redirectUri - A URL to redirect the user to after
235
235
* authenticating. This must be added to your app through the admin interface.
236
236
* @arg {String} code - An OAuth2 code.
237
+ * @returns {Object } An object containing the token and related info (if applicable)
237
238
*/
238
239
getAccessTokenFromCode ( redirectUri , code ) {
239
240
const clientId = this . getClientId ( ) ;
Original file line number Diff line number Diff line change @@ -41,8 +41,9 @@ export class DropboxAuth {
41
41
* @param redirectUri A URL to redirect the user to after authenticating.
42
42
* This must be added to your app through the admin interface.
43
43
* @param code An OAuth2 code.
44
+ * @returns {Object } An object containing the token and related info (if applicable)
44
45
*/
45
- getAccessTokenFromCode ( redirectUri : string , code : string ) : Promise < DropboxResponse < string > > ;
46
+ getAccessTokenFromCode ( redirectUri : string , code : string ) : Promise < DropboxResponse < object > > ;
46
47
47
48
/**
48
49
* Get a URL that can be used to authenticate users for the Dropbox API.
You can’t perform that action at this time.
0 commit comments