Skip to content

Commit 7bbfffb

Browse files
author
Eric Koleda
authored
Fix Zoho sample to ensure refresh token retrieved
1 parent bce5f58 commit 7bbfffb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/ZohoCRM.gs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ function getService(optAccountServer) {
6363

6464
// Set the access type to "offline" to get a refresh token.
6565
.setParam('access_type', 'offline')
66+
// Set prompt to "consent" to ensure a refresh token is retrieved.
67+
.setParam('prompt', 'consent')
6668

6769
// Set the property store where authorized tokens should be persisted.
6870
.setPropertyStore(PropertiesService.getUserProperties())

0 commit comments

Comments
 (0)