Removed unnecessary scopes

This commit is contained in:
Geomitron
2020-08-30 19:23:13 -04:00
parent 442cccb271
commit b228948646

View File

@@ -61,7 +61,7 @@ export class GoogleAuth {
authServer.on('listening', () => { authServer.on('listening', () => {
const authUrl = oAuth2Client.generateAuthUrl({ const authUrl = oAuth2Client.generateAuthUrl({
access_type: 'offline', access_type: 'offline',
scope: ['profile', 'email', 'https://www.googleapis.com/auth/drive.readonly'], scope: ['https://www.googleapis.com/auth/drive.readonly'],
redirect_uri: REDIRECT_URI redirect_uri: REDIRECT_URI
}) })
@@ -76,8 +76,7 @@ export class GoogleAuth {
center: true, center: true,
thickFrame: true, thickFrame: true,
useContentSize: true, useContentSize: true,
width: 400, width: 400
}) })
popupWindow.loadURL(authUrl, { userAgent: 'Chrome' }) popupWindow.loadURL(authUrl, { userAgent: 'Chrome' })
popupWindow.on('ready-to-show', () => popupWindow.show()) popupWindow.on('ready-to-show', () => popupWindow.show())