|
@@ -154,7 +154,7 @@ export async function authorize({
|
|
(resolve, reject) => {
|
|
(resolve, reject) => {
|
|
const scopes =
|
|
const scopes =
|
|
pickerType === 'drive' ?
|
|
pickerType === 'drive' ?
|
|
- ['https://www.googleapis.com/auth/drive.readonly']
|
|
|
|
|
|
+ ['https://www.googleapis.com/auth/drive.file']
|
|
: ['https://www.googleapis.com/auth/photospicker.mediaitems.readonly']
|
|
: ['https://www.googleapis.com/auth/photospicker.mediaitems.readonly']
|
|
|
|
|
|
const tokenClient = google.accounts.oauth2.initTokenClient({
|
|
const tokenClient = google.accounts.oauth2.initTokenClient({
|
|
@@ -240,7 +240,8 @@ export async function showDrivePicker({
|
|
.setIncludeFolders(true)
|
|
.setIncludeFolders(true)
|
|
// Note: setEnableDrives doesn't seem to work
|
|
// Note: setEnableDrives doesn't seem to work
|
|
// .setEnableDrives(true)
|
|
// .setEnableDrives(true)
|
|
- .setSelectFolderEnabled(false),
|
|
|
|
|
|
+ .setSelectFolderEnabled(false)
|
|
|
|
+ .setMode(google.picker.DocsViewMode.LIST),
|
|
)
|
|
)
|
|
// NOTE: photos is broken and results in an error being returned from Google
|
|
// NOTE: photos is broken and results in an error being returned from Google
|
|
// I think it's the old Picasa photos
|
|
// I think it's the old Picasa photos
|