Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
perry-mitchell committed Mar 2, 2024
1 parent 18460b2 commit 1ec556d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions source/main/services/googleDrive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { logInfo, logWarn } from "../library/log";
import {
GOOGLE_AUTH_REDIRECT,
GOOGLE_AUTH_TIMEOUT,
GOOGLE_DRIVE_SCOPES_PERMISSIVE,
GOOGLE_DRIVE_SCOPES_STANDARD,
GOOGLE_CLIENT_ID,
GOOGLE_CLIENT_SECRET
Expand All @@ -25,11 +24,9 @@ export function addGoogleTokens(
__googleDriveTokens[sourceID] = tokens;
}

async function authenticateGoogleDrive(
openPermissions: boolean = false
): Promise<{ accessToken: string; refreshToken: string }> {
logInfo(`Authenticating Google Drive (permissive: ${openPermissions ? "yes" : "no"})`);
const scopes = openPermissions ? GOOGLE_DRIVE_SCOPES_PERMISSIVE : GOOGLE_DRIVE_SCOPES_STANDARD;
async function authenticateGoogleDrive(): Promise<{ accessToken: string; refreshToken: string }> {
logInfo("Authenticating Google Drive");
const scopes = GOOGLE_DRIVE_SCOPES_STANDARD;
const oauth2Client = getGoogleDriveOAuthClient();
const url = oauth2Client.generateAuthUrl({
access_type: "offline",
Expand Down

0 comments on commit 1ec556d

Please sign in to comment.