Skip to content

Commit 91d7aa3

Browse files
fix: Dropbox sample not getting refresh token (#435)
1 parent 67cae40 commit 91d7aa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/Dropbox.gs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ function getService_() {
5353
// Set the property store where authorized tokens should be persisted.
5454
.setPropertyStore(PropertiesService.getUserProperties())
5555

56-
// Set the response type to code (required).
57-
.setParam('response_type', 'code');
56+
// Enable offline access (refresh_token).
57+
.setParam('token_access_type', 'offline');
5858
}
5959

6060
/**

0 commit comments

Comments
 (0)