mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 20:01:36 +00:00
Revert: gdrive client
This commit is contained in:
@@ -27,15 +27,11 @@ const oauth2Client = new google.auth.OAuth2({
|
||||
eagerRefreshThresholdMillis: 10000,
|
||||
redirectUri: "http://localhost",
|
||||
});
|
||||
function initializeClient() {
|
||||
oauth2Client.setCredentials({
|
||||
refresh_token: config.refresh_token as string,
|
||||
});
|
||||
gdrive = google.drive({
|
||||
version: "v3",
|
||||
auth: oauth2Client,
|
||||
});
|
||||
}
|
||||
|
||||
initializeClient();
|
||||
oauth2Client.setCredentials({
|
||||
refresh_token: config.refresh_token as string,
|
||||
});
|
||||
gdrive = google.drive({
|
||||
version: "v3",
|
||||
auth: oauth2Client,
|
||||
});
|
||||
export default gdrive;
|
||||
|
||||
Reference in New Issue
Block a user