diff --git a/src/modules/authentication/services/googleAuth.service.ts b/src/modules/authentication/services/googleAuth.service.ts index 389615d..4af47e9 100644 --- a/src/modules/authentication/services/googleAuth.service.ts +++ b/src/modules/authentication/services/googleAuth.service.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/no-var-requires */ import { Inject, Injectable } from '@nestjs/common'; -import opn from 'open'; import { google } from 'googleapis'; import { OAuth2Client } from 'googleapis-common'; import { deleteFile } from '../../../services/utils/files.service'; @@ -95,13 +94,6 @@ export class GoogleAuthService { }); } - redirectToAuth(oauth2Client) { - // grab the url that will be used for authorization - const authorizeUrl = this.generateAuthUrl(oauth2Client); - // open the browser to the authorize url to start the workflow - opn(authorizeUrl, { wait: false }).then((cp) => cp.unref()); - } - authCheck(req: Request, res: Response) { return new Promise((resolve, reject) => { this.authorize(