Skip to content

Commit

Permalink
remove open package
Browse files Browse the repository at this point in the history
  • Loading branch information
kamlekar committed Apr 30, 2023
1 parent a0d0c32 commit 3bc8c55
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/modules/authentication/services/googleAuth.service.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 3bc8c55

Please sign in to comment.