fix: Use correct OAuth token and headers in Google Drive file upload

This commit is contained in:
Taylor Wilsdon (aider)
2024-12-15 19:50:51 -05:00
parent 1542cb486d
commit f4f8334153
2 changed files with 3 additions and 5 deletions
+2 -2
View File
@@ -130,8 +130,8 @@ export const createPicker = () => {
name: fileName,
url: downloadUrl,
headers: {
'Authorization': `Bearer ${oauthToken}`,
'Content-Type': 'application/json'
'Authorization': `Bearer ${token}`, // Use the current valid token
'Accept': 'application/json'
}
};
console.log('Resolving picker with:', result);