From 3bc8c55acec4010611af6dd39322de1c13db16e2 Mon Sep 17 00:00:00 2001 From: Venkateshwar Date: Thu, 27 Apr 2023 22:00:51 +0530 Subject: [PATCH] remove open package --- src/modules/authentication/services/googleAuth.service.ts | 8 -------- 1 file changed, 8 deletions(-) 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(