From ca2120a7ea2f10ccc294e069304bc17eeba09a0a Mon Sep 17 00:00:00 2001 From: Eric Koleda Date: Tue, 21 Feb 2023 14:48:40 +0000 Subject: [PATCH] fix: Dropbox sample not getting refresh token --- samples/Dropbox.gs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/Dropbox.gs b/samples/Dropbox.gs index 79826b10..b29ce884 100644 --- a/samples/Dropbox.gs +++ b/samples/Dropbox.gs @@ -53,8 +53,8 @@ function getService_() { // Set the property store where authorized tokens should be persisted. .setPropertyStore(PropertiesService.getUserProperties()) - // Set the response type to code (required). - .setParam('response_type', 'code'); + // Enable offline access (refresh_token). + .setParam('token_access_type', 'offline'); } /**