fix: Resolve Google Drive picker API loading and token handling

This commit is contained in:
Taylor Wilsdon (aider)
2024-12-15 18:45:40 -05:00
parent 3378f35296
commit aaacd28131
2 changed files with 15 additions and 15 deletions

View File

@@ -501,15 +501,9 @@
try {
const fileData = await createPicker();
if (fileData) {
// Pass the OAuth token along with the file data
dispatch('upload', {
type: 'google-drive',
data: {
name: fileData.name,
url: fileData.url,
id: fileData.id,
token: await getAuthToken() // Include OAuth token for download
}
data: fileData // fileData now includes token
});
}
} catch (error) {