diff --git a/electron/google-auth.ts b/electron/google-auth.ts index d13807d2d..79b11a94c 100644 --- a/electron/google-auth.ts +++ b/electron/google-auth.ts @@ -30,9 +30,7 @@ const oauth2Client = new google.auth.OAuth2( 'urn:ietf:wg:oauth:2.0:oob' ); -/** - * This is one of the many ways you can configure googleapis to use authentication credentials. In this method, we're setting a global reference for all APIs. Any other API you use here, like google.drive('v3'), will now use this auth client. You can also override the auth client at the service and method call levels. - */ + google.options({auth: oauth2Client}); async function authenticate(refreshToken) { diff --git a/electron/jira.ts b/electron/jira.ts index f476e1b8f..85368b392 100644 --- a/electron/jira.ts +++ b/electron/jira.ts @@ -32,7 +32,7 @@ export const sendJiraRequest = (request) => { config.protocol = 'https'; } - let jira = new JiraApi({ + const jira = new JiraApi({ protocol: config.protocol, host: config.host, port: config.port,