File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -124,14 +124,14 @@ function getDriveService() {
124
124
125
125
// Sets the login hint, which will prevent the account chooser screen
126
126
// from being shown to users logged in with multiple accounts.
127
- .setParam (' login_hint' , Session .getActiveUser ().getEmail ())
127
+ .setParam (' login_hint' , Session .getEffectiveUser ().getEmail ())
128
128
129
129
// Requests offline access.
130
130
.setParam (' access_type' , ' offline' )
131
-
132
- // Forces the approval prompt every time. This is useful for testing,
133
- // but not desirable in a production application .
134
- .setParam (' approval_prompt ' , ' force ' );
131
+
132
+ // Consent prompt is required to ensure a refresh token is always
133
+ // returned when requesting offline access .
134
+ .setParam (' prompt ' , ' consent ' );
135
135
}
136
136
```
137
137
You can’t perform that action at this time.
0 commit comments